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() |
float |
getSaturationLevel() |
boolean |
needFood() |
void |
read(NBTTagCompound compound) |
void |
setFoodLevel(int foodLevelIn) |
void |
setFoodSaturationLevel(float foodSaturationLevelIn) |
void |
tick(EntityPlayer player) |
void |
write(NBTTagCompound compound) |
public void addStats(int foodLevelIn, float foodSaturationModifier)
public void tick(EntityPlayer player)
public void read(NBTTagCompound compound)
public void write(NBTTagCompound compound)
public int getFoodLevel()
public boolean needFood()
public void addExhaustion(float exhaustion)
public float getSaturationLevel()
public void setFoodLevel(int foodLevelIn)
public void setFoodSaturationLevel(float foodSaturationLevelIn)