public class CauldronLevelChangeEvent extends BlockEvent implements Cancellable
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
CauldronLevelChangeEvent.ChangeReason |
Event.Resultblock| コンストラクタと説明 |
|---|
CauldronLevelChangeEvent(Block block,
Entity entity,
CauldronLevelChangeEvent.ChangeReason reason,
int oldLevel,
int newLevel) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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) |
getBlockgetEventName, isAsynchronouspublic 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()
CancellableisCancelled インタフェース内 Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled インタフェース内 Cancellablecancelled - true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers クラス内 Eventpublic static HandlerList getHandlerList()
Copyright © 2016. All rights reserved.