Class FoodStats

java.lang.Object
net.minecraft.util.FoodStats

public class FoodStats 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

    • FoodStats

      public FoodStats()
  • Method Details

    • eat

      public void eat(int p_75122_1_, float p_75122_2_)
    • eat

      public void eat(Item p_221410_1_, ItemStack p_221410_2_)
    • tick

      public void tick(PlayerEntity p_75118_1_)
    • readAdditionalSaveData

      public void readAdditionalSaveData(CompoundNBT p_75112_1_)
    • addAdditionalSaveData

      public void addAdditionalSaveData(CompoundNBT p_75117_1_)
    • getFoodLevel

      public int getFoodLevel()
    • needsFood

      public boolean needsFood()
    • addExhaustion

      public void addExhaustion(float p_75113_1_)
    • getSaturationLevel

      public float getSaturationLevel()
    • setFoodLevel

      public void setFoodLevel(int p_75114_1_)
    • setSaturation

      public void setSaturation(float p_75119_1_)