Class FoodData

java.lang.Object
net.minecraft.world.food.FoodData

public class FoodData extends Object
  • Field Details

    • foodLevel

      private int foodLevel
    • saturationLevel

      private float saturationLevel
    • exhaustionLevel

      private float exhaustionLevel
    • tickTimer

      private int tickTimer
    • lastFoodLevel

      private int lastFoodLevel
  • Constructor Details

    • FoodData

      public FoodData()
  • Method Details

    • eat

      public void eat(int p_38708_, float p_38709_)
    • eat

      public void eat(Item p_38713_, ItemStack p_38714_)
    • tick

      public void tick(Player p_38711_)
    • readAdditionalSaveData

      public void readAdditionalSaveData(CompoundTag p_38716_)
    • addAdditionalSaveData

      public void addAdditionalSaveData(CompoundTag p_38720_)
    • getFoodLevel

      public int getFoodLevel()
    • getLastFoodLevel

      public int getLastFoodLevel()
    • needsFood

      public boolean needsFood()
    • addExhaustion

      public void addExhaustion(float p_38704_)
    • getExhaustionLevel

      public float getExhaustionLevel()
    • getSaturationLevel

      public float getSaturationLevel()
    • setFoodLevel

      public void setFoodLevel(int p_38706_)
    • setSaturation

      public void setSaturation(float p_38718_)
    • setExhaustion

      public void setExhaustion(float p_150379_)