net.minecraft.entity.player

public class HungerManager

net.minecraft.world.food.FoodData
net.minecraft.class_1702
net.minecraft.entity.player.HungerManager

Field summary

Modifier and TypeField
private static final int
DEFAULT_TICK_TIMER
field_57754
DEFAULT_FOOD_TICK_TIMER
private static final float
DEFAULT_EXHAUSTION_LEVEL
field_57755
DEFAULT_EXHAUSTION
private int
foodLevel
field_7756
foodLevel
private float
saturationLevel
field_7753
saturationLevel
private float
exhaustionLevel
field_7752
exhaustion
private int
tickTimer
field_7755
foodTickTimer

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
private void
add(int food, float saturation)
method_59684(int arg0, float arg1)
addInternal(int nutrition, float saturation)
public void
eat(int food, float saturationModifier)
method_7585(int arg0, float arg1)
add(int food, float saturationModifier)
public void
eat(FoodProperties foodProperties)
method_7579(class_4174 arg0)
eat(FoodComponent foodComponent)
public void
tick(ServerPlayer player)
method_7588(class_3222 arg0)
update(ServerPlayerEntity player)
public void
readAdditionalSaveData(ValueInput input)
method_7584(class_11368 arg0)
readData(ReadView view)
public void
addAdditionalSaveData(ValueOutput output)
method_7582(class_11372 arg0)
writeData(WriteView view)
public int
getFoodLevel()
method_7586()
getFoodLevel()
public boolean
hasEnoughFood()
method_75882()
canSprint()
public boolean
needsFood()
method_7587()
isNotFull()
public void
addExhaustion(float amount)
method_7583(float arg0)
addExhaustion(float exhaustion)
public float
getSaturationLevel()
method_7589()
getSaturationLevel()
public void
setFoodLevel(int food)
method_7580(int arg0)
setFoodLevel(int foodLevel)
public void
setSaturation(float saturation)
method_7581(float arg0)
setSaturationLevel(float saturationLevel)