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/HungerConstantsintermediary net/minecraft/class_6075official cvw
-
Field Summary
FieldsModifier 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic floatcalculateSaturation(int nutrition, float saturationModifier)
-
Field Details
-
FULL_FOOD_LEVEL
public 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_LEVELLnet/minecraft/entity/player/HungerConstants;FULL_FOOD_LEVEL:Iintermediary field_30704Lnet/minecraft/class_6075;field_30704:Iofficial aLcvw;a:I
-
field_30705
public static final float field_30705- See Also:
- Mappings:
Namespace Name Mixin selector named field_30705Lnet/minecraft/entity/player/HungerConstants;field_30705:Fintermediary field_30705Lnet/minecraft/class_6075;field_30705:Fofficial bLcvw;b:F
-
INITIAL_SATURATION_LEVEL
public 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_LEVELLnet/minecraft/entity/player/HungerConstants;INITIAL_SATURATION_LEVEL:Fintermediary field_30706Lnet/minecraft/class_6075;field_30706:Fofficial cLcvw;c:F
-
field_30707
public static final float field_30707- See Also:
- Mappings:
Namespace Name Mixin selector named field_30707Lnet/minecraft/entity/player/HungerConstants;field_30707:Fintermediary field_30707Lnet/minecraft/class_6075;field_30707:Fofficial dLcvw;d:F
-
EXHAUSTION_UNIT
public 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_UNITLnet/minecraft/entity/player/HungerConstants;EXHAUSTION_UNIT:Fintermediary field_30708Lnet/minecraft/class_6075;field_30708:Fofficial eLcvw;e:F
-
SLOW_HEALING_STARVING_INTERVAL
public 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_INTERVALLnet/minecraft/entity/player/HungerConstants;SLOW_HEALING_STARVING_INTERVAL:Iintermediary field_30709Lnet/minecraft/class_6075;field_30709:Iofficial fLcvw;f:I
-
FAST_HEALING_INTERVAL
public 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_INTERVALLnet/minecraft/entity/player/HungerConstants;FAST_HEALING_INTERVAL:Iintermediary field_30710Lnet/minecraft/class_6075;field_30710:Iofficial gLcvw;g:I
-
SLOW_HEALING_FOOD_LEVEL
public 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_LEVELLnet/minecraft/entity/player/HungerConstants;SLOW_HEALING_FOOD_LEVEL:Iintermediary field_30711Lnet/minecraft/class_6075;field_30711:Iofficial hLcvw;h:I
-
EXHAUSTION_PER_HITPOINT
public 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_HITPOINTLnet/minecraft/entity/player/HungerConstants;EXHAUSTION_PER_HITPOINT:Iintermediary field_30712Lnet/minecraft/class_6075;field_30712:Iofficial iLcvw;i:I
-
STARVING_FOOD_LEVEL
public 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_LEVELLnet/minecraft/entity/player/HungerConstants;STARVING_FOOD_LEVEL:Iintermediary field_30713Lnet/minecraft/class_6075;field_30713:Iofficial jLcvw;j:I
-
field_30714
public static final float field_30714- See Also:
- Mappings:
Namespace Name Mixin selector named field_30714Lnet/minecraft/entity/player/HungerConstants;field_30714:Fintermediary field_30714Lnet/minecraft/class_6075;field_30714:Fofficial kLcvw;k:F
-
field_30715
public static final float field_30715- See Also:
- Mappings:
Namespace Name Mixin selector named field_30715Lnet/minecraft/entity/player/HungerConstants;field_30715:Fintermediary field_30715Lnet/minecraft/class_6075;field_30715:Fofficial lLcvw;l:F
-
field_30716
public static final float field_30716- See Also:
- Mappings:
Namespace Name Mixin selector named field_30716Lnet/minecraft/entity/player/HungerConstants;field_30716:Fintermediary field_30716Lnet/minecraft/class_6075;field_30716:Fofficial mLcvw;m:F
-
field_30717
public static final float field_30717- See Also:
- Mappings:
Namespace Name Mixin selector named field_30717Lnet/minecraft/entity/player/HungerConstants;field_30717:Fintermediary field_30717Lnet/minecraft/class_6075;field_30717:Fofficial nLcvw;n:F
-
field_30718
public static final float field_30718- See Also:
- Mappings:
Namespace Name Mixin selector named field_30718Lnet/minecraft/entity/player/HungerConstants;field_30718:Fintermediary field_30718Lnet/minecraft/class_6075;field_30718:Fofficial oLcvw;o:F
-
field_30719
public static final float field_30719- See Also:
- Mappings:
Namespace Name Mixin selector named field_30719Lnet/minecraft/entity/player/HungerConstants;field_30719:Fintermediary field_30719Lnet/minecraft/class_6075;field_30719:Fofficial pLcvw;p:F
-
field_30720
public static final float field_30720- See Also:
- Mappings:
Namespace Name Mixin selector named field_30720Lnet/minecraft/entity/player/HungerConstants;field_30720:Fintermediary field_30720Lnet/minecraft/class_6075;field_30720:Fofficial qLcvw;q:F
-
field_30721
public static final float field_30721- See Also:
- Mappings:
Namespace Name Mixin selector named field_30721Lnet/minecraft/entity/player/HungerConstants;field_30721:Fintermediary field_30721Lnet/minecraft/class_6075;field_30721:Fofficial rLcvw;r:F
-
field_30722
public static final float field_30722- See Also:
- Mappings:
Namespace Name Mixin selector named field_30722Lnet/minecraft/entity/player/HungerConstants;field_30722:Fintermediary field_30722Lnet/minecraft/class_6075;field_30722:Fofficial sLcvw;s:F
-
field_30723
public static final float field_30723- See Also:
- Mappings:
Namespace Name Mixin selector named field_30723Lnet/minecraft/entity/player/HungerConstants;field_30723:Fintermediary field_30723Lnet/minecraft/class_6075;field_30723:Fofficial tLcvw;t:F
-
field_30724
public static final float field_30724- See Also:
- Mappings:
Namespace Name Mixin selector named field_30724Lnet/minecraft/entity/player/HungerConstants;field_30724:Fintermediary field_30724Lnet/minecraft/class_6075;field_30724:Fofficial uLcvw;u:F
-
field_30726
public static final float field_30726- See Also:
- Mappings:
Namespace Name Mixin selector named field_30726Lnet/minecraft/entity/player/HungerConstants;field_30726:Fintermediary field_30726Lnet/minecraft/class_6075;field_30726:Fofficial vLcvw;v:F
-
field_30727
public static final float field_30727- See Also:
- Mappings:
Namespace Name Mixin selector named field_30727Lnet/minecraft/entity/player/HungerConstants;field_30727:Fintermediary field_30727Lnet/minecraft/class_6075;field_30727:Fofficial wLcvw;w:F
-
field_30728
public static final float field_30728- See Also:
- Mappings:
Namespace Name Mixin selector named field_30728Lnet/minecraft/entity/player/HungerConstants;field_30728:Fintermediary field_30728Lnet/minecraft/class_6075;field_30728:Fofficial xLcvw;x:F
-
field_30729
public static final float field_30729- See Also:
- Mappings:
Namespace Name Mixin selector named field_30729Lnet/minecraft/entity/player/HungerConstants;field_30729:Fintermediary field_30729Lnet/minecraft/class_6075;field_30729:Fofficial yLcvw;y:F
-
-
Constructor Details
-
HungerConstants
public HungerConstants()
-
-
Method Details
-
calculateSaturation
public static float calculateSaturation(int nutrition, float saturationModifier) - Mappings:
Namespace Name Mixin selector named calculateSaturationLnet/minecraft/entity/player/HungerConstants;calculateSaturation(IF)Fintermediary method_59683Lnet/minecraft/class_6075;method_59683(IF)Fofficial aLcvw;a(IF)F
-