public class FoodStats
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private float |
exhaustionLevel |
private int |
foodLevel |
private int |
lastFoodLevel |
private float |
saturationLevel |
private int |
tickTimer |
Constructor and Description |
---|
FoodStats() |
Modifier and Type | Method and Description |
---|---|
void |
addAdditionalSaveData(CompoundNBT p_75117_1_) |
void |
addExhaustion(float p_75113_1_) |
void |
eat(int p_75122_1_,
float p_75122_2_) |
void |
eat(Item p_221410_1_,
ItemStack p_221410_2_) |
int |
getFoodLevel() |
float |
getSaturationLevel() |
boolean |
needsFood() |
void |
readAdditionalSaveData(CompoundNBT p_75112_1_) |
void |
setFoodLevel(int p_75114_1_) |
void |
setSaturation(float p_75119_1_) |
void |
tick(PlayerEntity p_75118_1_) |
private int foodLevel
private float saturationLevel
private float exhaustionLevel
private int tickTimer
private int lastFoodLevel
public void eat(int p_75122_1_, float p_75122_2_)
public void tick(PlayerEntity p_75118_1_)
public void readAdditionalSaveData(CompoundNBT p_75112_1_)
public void addAdditionalSaveData(CompoundNBT p_75117_1_)
public int getFoodLevel()
public boolean needsFood()
public void addExhaustion(float p_75113_1_)
public float getSaturationLevel()
public void setFoodLevel(int p_75114_1_)
public void setSaturation(float p_75119_1_)