Package net.minecraft.util
Class FoodStats
java.lang.Object
net.minecraft.util.FoodStats
-
Field Summary
Modifier and TypeFieldDescriptionprivate float
private int
private int
private float
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdditionalSaveData
(CompoundNBT p_75117_1_) void
addExhaustion
(float p_75113_1_) void
eat
(int p_75122_1_, float p_75122_2_) void
int
float
boolean
void
readAdditionalSaveData
(CompoundNBT p_75112_1_) void
setFoodLevel
(int p_75114_1_) void
setSaturation
(float p_75119_1_) void
tick
(PlayerEntity p_75118_1_)
-
Field Details
-
foodLevel
private int foodLevel -
saturationLevel
private float saturationLevel -
exhaustionLevel
private float exhaustionLevel -
tickTimer
private int tickTimer -
lastFoodLevel
private int lastFoodLevel
-
-
Constructor Details
-
FoodStats
public FoodStats()
-
-
Method Details
-
eat
public void eat(int p_75122_1_, float p_75122_2_) -
eat
-
tick
-
readAdditionalSaveData
-
addAdditionalSaveData
-
getFoodLevel
public int getFoodLevel() -
needsFood
public boolean needsFood() -
addExhaustion
public void addExhaustion(float p_75113_1_) -
getSaturationLevel
public float getSaturationLevel() -
setFoodLevel
public void setFoodLevel(int p_75114_1_) -
setSaturation
public void setSaturation(float p_75119_1_)
-