Class PlayerFoodLevelChangeEvent

java.lang.Object
cn.nukkit.event.Event
cn.nukkit.event.player.PlayerEvent
cn.nukkit.event.player.PlayerFoodLevelChangeEvent
All Implemented Interfaces:
Cancellable

public class PlayerFoodLevelChangeEvent extends PlayerEvent implements Cancellable
  • Field Details

    • foodLevel

      protected int foodLevel
    • foodSaturationLevel

      protected float foodSaturationLevel
  • Constructor Details

    • PlayerFoodLevelChangeEvent

      public PlayerFoodLevelChangeEvent(Player player, int foodLevel, float foodSaturationLevel)
  • Method Details

    • getHandlers

      public static HandlerList getHandlers()
    • getFoodLevel

      public int getFoodLevel()
    • setFoodLevel

      public void setFoodLevel(int foodLevel)
    • getFoodSaturationLevel

      public float getFoodSaturationLevel()
    • setFoodSaturationLevel

      public void setFoodSaturationLevel(float foodSaturationLevel)