Package org.bukkit.event.block
Class CauldronLevelChangeEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.CauldronLevelChangeEvent
- All Implemented Interfaces:
- Cancellable
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.block.BlockEventblock
- 
Constructor SummaryConstructorsConstructorDescriptionCauldronLevelChangeEvent(@NotNull Block block, @Nullable Entity entity, @NotNull CauldronLevelChangeEvent.ChangeReason reason, @NotNull BlockState newBlock) 
- 
Method SummaryModifier and TypeMethodDescriptionGet entity which did this.static @NotNull HandlerListintDeprecated.not all cauldron contents are LevelledGets the new state of the cauldron.intDeprecated.not all cauldron contents are LevelledbooleanGets the cancellation state of this event.voidsetCancelled(boolean cancelled) Sets the cancellation state of this event.voidsetNewLevel(int newLevel) Deprecated.not all cauldron contents are LevelledMethods inherited from class org.bukkit.event.block.BlockEventgetBlockMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronous
- 
Constructor Details- 
CauldronLevelChangeEvent
 
- 
- 
Method Details- 
getEntityGet entity which did this. May be null.- Returns:
- acting entity
 
- 
getReason
- 
getNewStateGets the new state of the cauldron.- Returns:
- The block state of the block that will be changed
 
- 
getOldLevelDeprecated.not all cauldron contents are LevelledGets the old level of the cauldron.- Returns:
- old level
- See Also:
 
- 
getNewLevelDeprecated.not all cauldron contents are LevelledGets the new level of the cauldron.- Returns:
- new level
- See Also:
 
- 
setNewLevelDeprecated.not all cauldron contents are LevelledSets the new level of the cauldron.- Parameters:
- newLevel- new level
- See Also:
 
- 
isCancelledpublic boolean isCancelled()Description copied from interface:CancellableGets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins- Specified by:
- isCancelledin interface- Cancellable
- Returns:
- true if this event is cancelled
 
- 
setCancelledpublic void setCancelled(boolean cancelled) Description copied from interface:CancellableSets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.- Specified by:
- setCancelledin interface- Cancellable
- Parameters:
- cancelled- true if you wish to cancel this event
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
 
-