类 FoodData

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

public class FoodData extends Object
  • 字段详细资料

    • foodLevel

      private int foodLevel
    • saturationLevel

      private float saturationLevel
    • exhaustionLevel

      private float exhaustionLevel
    • tickTimer

      private int tickTimer
    • lastFoodLevel

      private int lastFoodLevel
  • 构造器详细资料

    • FoodData

      public FoodData()
  • 方法详细资料

    • eat

      public void eat(int pFoodLevelModifier, float pSaturationLevelModifier)
    • eat

      @Deprecated public void eat(Item pItem, ItemStack pStack)
      已过时。
    • eat

      public void eat(Item pItem, ItemStack pStack, @Nullable LivingEntity entity)
    • tick

      public void tick(Player pPlayer)
    • readAdditionalSaveData

      public void readAdditionalSaveData(CompoundTag pCompoundTag)
    • addAdditionalSaveData

      public void addAdditionalSaveData(CompoundTag pCompoundTag)
    • getFoodLevel

      public int getFoodLevel()
    • getLastFoodLevel

      public int getLastFoodLevel()
    • needsFood

      public boolean needsFood()
    • addExhaustion

      public void addExhaustion(float pExhaustion)
    • getExhaustionLevel

      public float getExhaustionLevel()
    • getSaturationLevel

      public float getSaturationLevel()
    • setFoodLevel

      public void setFoodLevel(int pFoodLevel)
    • setSaturation

      public void setSaturation(float pSaturationLevel)
    • setExhaustion

      public void setExhaustion(float pExhaustionLevel)