Package net.minecraft.entity.player
Class HungerConstants
java.lang.Object
net.minecraft.entity.player.HungerConstants
Some constants on hunger values.
- See Also:
- Mappings:
- Namespace - Name - named - net/minecraft/entity/player/HungerConstants- intermediary - net/minecraft/class_6075- official - cry
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intThe exhaustion from healing each hitpoint (6), used for both fast and slow healing mechanisms.static final floatA value 4.0f that when the exhaustion reaches, the exhaustion minuses itself by to reduce the saturation or food level.static final intWhen the food tick is a multiple of 10, the hunger manager may perform fast healing logic.static final floatstatic final floatstatic final floatstatic final floatstatic final floatstatic final floatstatic final floatstatic final floatstatic final floatstatic final floatstatic final floatstatic final floatstatic final floatstatic final floatstatic final floatstatic final floatstatic final floatstatic final intThe maximum food level (20) allowed in a hunger manager.static final floatThe initial saturation level (5.0f) for a newly created hunger manager.static final intThe minimum food level (18) required for the slow-healing mechanism.static final intWhen the food tick is a multiple of 80, the hunger manager may perform slow healing or starving logic.static final intThe maximum food level (0) permitted for the starving mechanism to run.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic floatcalculateSaturation(int nutrition, float saturationModifier) 
- 
Field Details- 
FULL_FOOD_LEVELpublic static final int FULL_FOOD_LEVELThe maximum food level (20) allowed in a hunger manager.- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - FULL_FOOD_LEVEL- Lnet/minecraft/entity/player/HungerConstants;FULL_FOOD_LEVEL:I- intermediary - field_30704- Lnet/minecraft/class_6075;field_30704:I- official - a- Lcry;a:I
 
- 
field_30705public static final float field_30705- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_30705- Lnet/minecraft/entity/player/HungerConstants;field_30705:F- intermediary - field_30705- Lnet/minecraft/class_6075;field_30705:F- official - b- Lcry;b:F
 
- 
INITIAL_SATURATION_LEVELpublic static final float INITIAL_SATURATION_LEVELThe initial saturation level (5.0f) for a newly created hunger manager.- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - INITIAL_SATURATION_LEVEL- Lnet/minecraft/entity/player/HungerConstants;INITIAL_SATURATION_LEVEL:F- intermediary - field_30706- Lnet/minecraft/class_6075;field_30706:F- official - c- Lcry;c:F
 
- 
field_30707public static final float field_30707- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_30707- Lnet/minecraft/entity/player/HungerConstants;field_30707:F- intermediary - field_30707- Lnet/minecraft/class_6075;field_30707:F- official - d- Lcry;d:F
 
- 
EXHAUSTION_UNITpublic static final float EXHAUSTION_UNITA value 4.0f that when the exhaustion reaches, the exhaustion minuses itself by to reduce the saturation or food level.- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - EXHAUSTION_UNIT- Lnet/minecraft/entity/player/HungerConstants;EXHAUSTION_UNIT:F- intermediary - field_30708- Lnet/minecraft/class_6075;field_30708:F- official - e- Lcry;e:F
 
- 
SLOW_HEALING_STARVING_INTERVALpublic static final int SLOW_HEALING_STARVING_INTERVALWhen the food tick is a multiple of 80, the hunger manager may perform slow healing or starving logic.- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - SLOW_HEALING_STARVING_INTERVAL- Lnet/minecraft/entity/player/HungerConstants;SLOW_HEALING_STARVING_INTERVAL:I- intermediary - field_30709- Lnet/minecraft/class_6075;field_30709:I- official - f- Lcry;f:I
 
- 
FAST_HEALING_INTERVALpublic static final int FAST_HEALING_INTERVALWhen the food tick is a multiple of 10, the hunger manager may perform fast healing logic.- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - FAST_HEALING_INTERVAL- Lnet/minecraft/entity/player/HungerConstants;FAST_HEALING_INTERVAL:I- intermediary - field_30710- Lnet/minecraft/class_6075;field_30710:I- official - g- Lcry;g:I
 
- 
SLOW_HEALING_FOOD_LEVELpublic static final int SLOW_HEALING_FOOD_LEVELThe minimum food level (18) required for the slow-healing mechanism.- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - SLOW_HEALING_FOOD_LEVEL- Lnet/minecraft/entity/player/HungerConstants;SLOW_HEALING_FOOD_LEVEL:I- intermediary - field_30711- Lnet/minecraft/class_6075;field_30711:I- official - h- Lcry;h:I
 
- 
EXHAUSTION_PER_HITPOINTpublic static final int EXHAUSTION_PER_HITPOINTThe exhaustion from healing each hitpoint (6), used for both fast and slow healing mechanisms.- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - EXHAUSTION_PER_HITPOINT- Lnet/minecraft/entity/player/HungerConstants;EXHAUSTION_PER_HITPOINT:I- intermediary - field_30712- Lnet/minecraft/class_6075;field_30712:I- official - i- Lcry;i:I
 
- 
STARVING_FOOD_LEVELpublic static final int STARVING_FOOD_LEVELThe maximum food level (0) permitted for the starving mechanism to run.- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - STARVING_FOOD_LEVEL- Lnet/minecraft/entity/player/HungerConstants;STARVING_FOOD_LEVEL:I- intermediary - field_30713- Lnet/minecraft/class_6075;field_30713:I- official - j- Lcry;j:I
 
- 
field_30714public static final float field_30714- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_30714- Lnet/minecraft/entity/player/HungerConstants;field_30714:F- intermediary - field_30714- Lnet/minecraft/class_6075;field_30714:F- official - k- Lcry;k:F
 
- 
field_30715public static final float field_30715- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_30715- Lnet/minecraft/entity/player/HungerConstants;field_30715:F- intermediary - field_30715- Lnet/minecraft/class_6075;field_30715:F- official - l- Lcry;l:F
 
- 
field_30716public static final float field_30716- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_30716- Lnet/minecraft/entity/player/HungerConstants;field_30716:F- intermediary - field_30716- Lnet/minecraft/class_6075;field_30716:F- official - m- Lcry;m:F
 
- 
field_30717public static final float field_30717- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_30717- Lnet/minecraft/entity/player/HungerConstants;field_30717:F- intermediary - field_30717- Lnet/minecraft/class_6075;field_30717:F- official - n- Lcry;n:F
 
- 
field_30718public static final float field_30718- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_30718- Lnet/minecraft/entity/player/HungerConstants;field_30718:F- intermediary - field_30718- Lnet/minecraft/class_6075;field_30718:F- official - o- Lcry;o:F
 
- 
field_30719public static final float field_30719- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_30719- Lnet/minecraft/entity/player/HungerConstants;field_30719:F- intermediary - field_30719- Lnet/minecraft/class_6075;field_30719:F- official - p- Lcry;p:F
 
- 
field_30720public static final float field_30720- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_30720- Lnet/minecraft/entity/player/HungerConstants;field_30720:F- intermediary - field_30720- Lnet/minecraft/class_6075;field_30720:F- official - q- Lcry;q:F
 
- 
field_30721public static final float field_30721- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_30721- Lnet/minecraft/entity/player/HungerConstants;field_30721:F- intermediary - field_30721- Lnet/minecraft/class_6075;field_30721:F- official - r- Lcry;r:F
 
- 
field_30722public static final float field_30722- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_30722- Lnet/minecraft/entity/player/HungerConstants;field_30722:F- intermediary - field_30722- Lnet/minecraft/class_6075;field_30722:F- official - s- Lcry;s:F
 
- 
field_30723public static final float field_30723- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_30723- Lnet/minecraft/entity/player/HungerConstants;field_30723:F- intermediary - field_30723- Lnet/minecraft/class_6075;field_30723:F- official - t- Lcry;t:F
 
- 
field_30724public static final float field_30724- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_30724- Lnet/minecraft/entity/player/HungerConstants;field_30724:F- intermediary - field_30724- Lnet/minecraft/class_6075;field_30724:F- official - u- Lcry;u:F
 
- 
field_30726public static final float field_30726- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_30726- Lnet/minecraft/entity/player/HungerConstants;field_30726:F- intermediary - field_30726- Lnet/minecraft/class_6075;field_30726:F- official - v- Lcry;v:F
 
- 
field_30727public static final float field_30727- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_30727- Lnet/minecraft/entity/player/HungerConstants;field_30727:F- intermediary - field_30727- Lnet/minecraft/class_6075;field_30727:F- official - w- Lcry;w:F
 
- 
field_30728public static final float field_30728- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_30728- Lnet/minecraft/entity/player/HungerConstants;field_30728:F- intermediary - field_30728- Lnet/minecraft/class_6075;field_30728:F- official - x- Lcry;x:F
 
- 
field_30729public static final float field_30729- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_30729- Lnet/minecraft/entity/player/HungerConstants;field_30729:F- intermediary - field_30729- Lnet/minecraft/class_6075;field_30729:F- official - y- Lcry;y:F
 
 
- 
- 
Constructor Details- 
HungerConstantspublic HungerConstants()
 
- 
- 
Method Details- 
calculateSaturationpublic static float calculateSaturation(int nutrition, float saturationModifier) - Mappings:
- Namespace - Name - Mixin selector - named - calculateSaturation- Lnet/minecraft/entity/player/HungerConstants;calculateSaturation(IF)F- intermediary - method_59683- Lnet/minecraft/class_6075;method_59683(IF)F- official - a- Lcry;a(IF)F
 
 
-