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

    • add

      private void add(int p_340988_, float p_340961_)
    • eat

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

      @Deprecated public void eat(ItemStack p_38714_)
      Deprecated.
    • eat

      public void eat(ItemStack p_38714_, @Nullable LivingEntity entity)
    • 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_)