Class FoodStats

java.lang.Object
net.minecraft.src.FoodStats

public class FoodStats extends Object
  • Constructor Details

    • FoodStats

      public FoodStats()
  • Method Details

    • addStats

      public void addStats(ItemFood par1ItemFood)
      Eat some food.
    • readNBT

      public void readNBT(NBTTagCompound par1NBTTagCompound)
      Reads food stats from an NBT object.
    • writeNBT

      public void writeNBT(NBTTagCompound par1NBTTagCompound)
      Writes food stats to an NBT object.
    • getFoodLevel

      public int getFoodLevel()
      Get the player's food level.
    • getPrevFoodLevel

      public int getPrevFoodLevel()
    • needFood

      public boolean needFood()
      If foodLevel is not max.
    • addExhaustion

      public void addExhaustion(float par1)
      adds input to foodExhaustionLevel to a max of 40
    • getSaturationLevel

      public float getSaturationLevel()
      Get the player's food saturation level.
    • setFoodLevel

      public void setFoodLevel(int par1)
    • setFoodSaturationLevel

      public void setFoodSaturationLevel(float par1)
    • addStats

      public void addStats(int iFoodGain, float fFatMultiplier)
      Note that iFoodGain is one third regular hunger gained, with 6 units being a full pip
    • onUpdate

      public void onUpdate(EntityPlayer player)
    • attemptToShit

      public boolean attemptToShit(EntityPlayer player)