public class CauldronLevelChangeEvent extends BlockEvent implements Cancellable
Modifier and Type | Class and Description |
---|---|
static class |
CauldronLevelChangeEvent.ChangeReason |
Event.Result
block
Constructor and Description |
---|
CauldronLevelChangeEvent(Block block,
Entity entity,
CauldronLevelChangeEvent.ChangeReason reason,
int oldLevel,
int newLevel) |
Modifier and Type | Method and 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) |
getBlock
getEventName, isAsynchronous
public CauldronLevelChangeEvent(Block block, Entity entity, CauldronLevelChangeEvent.ChangeReason reason, int oldLevel, int newLevel)
public Entity getEntity()
public CauldronLevelChangeEvent.ChangeReason getReason()
public int getOldLevel()
public int getNewLevel()
public void setNewLevel(int newLevel)
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancelled)
Cancellable
setCancelled
in interface Cancellable
cancelled
- true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2017. All rights reserved.