Package net.minecraft.src
Class FoodStats
java.lang.Object
net.minecraft.src.FoodStats
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExhaustion(float par1) adds input to foodExhaustionLevel to a max of 40voidaddStats(int iFoodGain, float fFatMultiplier) Note that iFoodGain is one third regular hunger gained, with 6 units being a full pipvoidEat some food.booleanattemptToShit(EntityPlayer player) intGet the player's food level.intfloatGet the player's food saturation level.booleanneedFood()If foodLevel is not max.voidonUpdate(EntityPlayer player) voidreadNBT(NBTTagCompound par1NBTTagCompound) Reads food stats from an NBT object.voidsetFoodLevel(int par1) voidsetFoodSaturationLevel(float par1) voidwriteNBT(NBTTagCompound par1NBTTagCompound) Writes food stats to an NBT object.
-
Constructor Details
-
FoodStats
public FoodStats()
-
-
Method Details
-
addStats
Eat some food. -
readNBT
Reads food stats from an NBT object. -
writeNBT
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
-
attemptToShit
-