public class FoodStats
extends java.lang.Object
| Constructor and Description |
|---|
FoodStats() |
| Modifier and Type | Method and Description |
|---|---|
void |
addExhaustion(float p_75113_1_)
adds input to foodExhaustionLevel to a max of 40
|
void |
addStats(int p_75122_1_,
float p_75122_2_)
Args: int foodLevel, float foodSaturationModifier
|
void |
func_151686_a(ItemFood p_151686_1_,
ItemStack p_151686_2_) |
int |
getFoodLevel()
Get the player's food level.
|
int |
getPrevFoodLevel() |
float |
getSaturationLevel()
Get the player's food saturation level.
|
boolean |
needFood()
If foodLevel is not max.
|
void |
onUpdate(EntityPlayer p_75118_1_)
Handles the food game logic.
|
void |
readNBT(NBTTagCompound p_75112_1_)
Reads food stats from an NBT object.
|
void |
setFoodLevel(int p_75114_1_) |
void |
setFoodSaturationLevel(float p_75119_1_) |
void |
writeNBT(NBTTagCompound p_75117_1_)
Writes food stats to an NBT object.
|
public void addStats(int p_75122_1_,
float p_75122_2_)
public void onUpdate(EntityPlayer p_75118_1_)
public void readNBT(NBTTagCompound p_75112_1_)
public void writeNBT(NBTTagCompound p_75117_1_)
public int getFoodLevel()
public int getPrevFoodLevel()
public boolean needFood()
public void addExhaustion(float p_75113_1_)
public float getSaturationLevel()
public void setFoodLevel(int p_75114_1_)
public void setFoodSaturationLevel(float p_75119_1_)