Package net.minecraft.util
Class FoodStats
- java.lang.Object
-
- net.minecraft.util.FoodStats
-
public class FoodStats extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private float
exhaustionLevel
private int
foodLevel
private int
lastFoodLevel
private float
saturationLevel
private int
tickTimer
-
Constructor Summary
Constructors Constructor Description FoodStats()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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_)
-
-
-
Method Detail
-
eat
public void eat(int p_75122_1_, float p_75122_2_)
-
tick
public void tick(PlayerEntity p_75118_1_)
-
readAdditionalSaveData
public void readAdditionalSaveData(CompoundNBT p_75112_1_)
-
addAdditionalSaveData
public void addAdditionalSaveData(CompoundNBT p_75117_1_)
-
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_)
-
-