Class FoodStats


  • public class FoodStats
    extends java.lang.Object
    • Field Detail

      • foodLevel

        private int foodLevel
      • saturationLevel

        private float saturationLevel
      • exhaustionLevel

        private float exhaustionLevel
      • tickTimer

        private int tickTimer
      • lastFoodLevel

        private int lastFoodLevel
    • Constructor Detail

      • FoodStats

        public FoodStats()
    • Method Detail

      • eat

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

        public void eat​(Item p_221410_1_,
                        ItemStack p_221410_2_)
      • 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_)