public class FoodStats
extends java.lang.Object
Constructor and Description |
---|
FoodStats() |
Modifier and Type | Method and Description |
---|---|
void |
addExhaustion(float exhaustion) |
void |
addStats(int foodLevelIn,
float foodSaturationModifier) |
void |
addStats(ItemFood foodItem,
ItemStack stack) |
int |
getFoodLevel() |
int |
getPrevFoodLevel() |
float |
getSaturationLevel() |
boolean |
needFood() |
void |
onUpdate(EntityPlayer player) |
void |
readNBT(NBTTagCompound compound) |
void |
setFoodLevel(int foodLevelIn) |
void |
setFoodSaturationLevel(float foodSaturationLevelIn) |
void |
writeNBT(NBTTagCompound compound) |
public void addStats(int foodLevelIn, float foodSaturationModifier)
public void onUpdate(EntityPlayer player)
public void readNBT(NBTTagCompound compound)
public void writeNBT(NBTTagCompound compound)
public int getFoodLevel()
public int getPrevFoodLevel()
public boolean needFood()
public void addExhaustion(float exhaustion)
public float getSaturationLevel()
public void setFoodLevel(int foodLevelIn)
public void setFoodSaturationLevel(float foodSaturationLevelIn)