Cancellablepublic class CauldronLevelChangeEvent extends BlockEvent implements Cancellable
| Modifier and Type | Class | Description | 
|---|---|---|
| static class  | CauldronLevelChangeEvent.ChangeReason | 
Event.Resultblock| Constructor | Description | 
|---|---|
| CauldronLevelChangeEvent(Block block,
                        Entity entity,
                        CauldronLevelChangeEvent.ChangeReason reason,
                        int oldLevel,
                        int newLevel) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Entity | getEntity() | Get entity which did this. | 
| static HandlerList | getHandlerList() | |
| HandlerList | getHandlers() | |
| int | getNewLevel() | |
| int | getOldLevel() | |
| CauldronLevelChangeEvent.ChangeReason | getReason() | |
| boolean | isCancelled() | Gets the cancellation state of this event. | 
| void | setCancelled(boolean cancelled) | Sets the cancellation state of this event. | 
| void | setNewLevel(int newLevel) | 
getBlockcallEvent, getEventName, isAsynchronouspublic CauldronLevelChangeEvent(@NotNull
                                Block block,
                                @Nullable
                                Entity entity,
                                @NotNull
                                CauldronLevelChangeEvent.ChangeReason reason,
                                int oldLevel,
                                int newLevel)
@Nullable public Entity getEntity()
@NotNull public CauldronLevelChangeEvent.ChangeReason getReason()
public int getOldLevel()
public int getNewLevel()
public void setNewLevel(int newLevel)
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true if you wish to cancel this event@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
Copyright © 2020. All rights reserved.