类 FoodData
java.lang.Object
net.minecraft.world.food.FoodData
-
字段概要
字段修饰符和类型字段说明private float
private int
private int
private float
private int
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
addAdditionalSaveData
(CompoundTag pCompoundTag) void
addExhaustion
(float pExhaustion) void
eat
(int pFoodLevelModifier, float pSaturationLevelModifier) void
已过时。void
eat
(Item pItem, ItemStack pStack, LivingEntity entity) float
int
int
float
boolean
void
readAdditionalSaveData
(CompoundTag pCompoundTag) void
setExhaustion
(float pExhaustionLevel) void
setFoodLevel
(int pFoodLevel) void
setSaturation
(float pSaturationLevel) void
-
字段详细资料
-
foodLevel
private int foodLevel -
saturationLevel
private float saturationLevel -
exhaustionLevel
private float exhaustionLevel -
tickTimer
private int tickTimer -
lastFoodLevel
private int lastFoodLevel
-
-
构造器详细资料
-
FoodData
public FoodData()
-
-
方法详细资料
-
eat
public void eat(int pFoodLevelModifier, float pSaturationLevelModifier) -
eat
已过时。 -
eat
-
tick
-
readAdditionalSaveData
-
addAdditionalSaveData
-
getFoodLevel
public int getFoodLevel() -
getLastFoodLevel
public int getLastFoodLevel() -
needsFood
public boolean needsFood() -
addExhaustion
public void addExhaustion(float pExhaustion) -
getExhaustionLevel
public float getExhaustionLevel() -
getSaturationLevel
public float getSaturationLevel() -
setFoodLevel
public void setFoodLevel(int pFoodLevel) -
setSaturation
public void setSaturation(float pSaturationLevel) -
setExhaustion
public void setExhaustion(float pExhaustionLevel)
-