Package cn.nukkit.event.player
Class PlayerFoodLevelChangeEvent
java.lang.Object
cn.nukkit.event.Event
cn.nukkit.event.player.PlayerEvent
cn.nukkit.event.player.PlayerFoodLevelChangeEvent
- All Implemented Interfaces:
Cancellable
-
Field Summary
Fields inherited from class cn.nukkit.event.player.PlayerEvent
player
-
Constructor Summary
ConstructorDescriptionPlayerFoodLevelChangeEvent
(Player player, int foodLevel, float foodSaturationLevel) -
Method Summary
Modifier and TypeMethodDescriptionint
float
static HandlerList
void
setFoodLevel
(int foodLevel) void
setFoodSaturationLevel
(float foodSaturationLevel) Methods inherited from class cn.nukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class cn.nukkit.event.Event
getEventName, isCancelled, setCancelled, setCancelled
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cn.nukkit.event.Cancellable
isCancelled, setCancelled, setCancelled
-
Field Details
-
foodLevel
protected int foodLevel -
foodSaturationLevel
protected float foodSaturationLevel
-
-
Constructor Details
-
PlayerFoodLevelChangeEvent
-
-
Method Details
-
getHandlers
-
getFoodLevel
public int getFoodLevel() -
setFoodLevel
public void setFoodLevel(int foodLevel) -
getFoodSaturationLevel
public float getFoodSaturationLevel() -
setFoodSaturationLevel
public void setFoodSaturationLevel(float foodSaturationLevel)
-