public class FoodLevelChangeEvent extends EntityEvent implements Cancellable
Event.Result
entity
コンストラクタと説明 |
---|
FoodLevelChangeEvent(HumanEntity what,
int level) |
修飾子とタイプ | メソッドと説明 |
---|---|
HumanEntity |
getEntity()
Returns the Entity involved in this event
|
int |
getFoodLevel()
Gets the resultant food level that the entity involved in this event
should be set to.
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
boolean |
isCancelled()
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event.
|
void |
setFoodLevel(int level)
Sets the resultant food level that the entity involved in this event
should be set to
|
getEntityType
getEventName, isAsynchronous
public FoodLevelChangeEvent(HumanEntity what, int level)
public HumanEntity getEntity()
EntityEvent
getEntity
クラス内 EntityEvent
public int getFoodLevel()
Where 20 is a full food bar and 0 is an empty one.
public void setFoodLevel(int level)
level
- the resultant food level that the entity involved in this
event should be set topublic boolean isCancelled()
Cancellable
isCancelled
インタフェース内 Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
インタフェース内 Cancellable
cancel
- true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers
クラス内 Event
public static HandlerList getHandlerList()
Copyright © 2016. All rights reserved.