Class HungerConstants

java.lang.Object
net.minecraft.entity.player.HungerConstants

public class HungerConstants extends Object
Some constants on hunger values.
See Also:
Mappings:
Namespace Name
named net/minecraft/entity/player/HungerConstants
intermediary net/minecraft/class_6075
official cpp
  • Field Details

    • FULL_FOOD_LEVEL

      public static final int FULL_FOOD_LEVEL
      The 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 Lcpp;a:I
    • field_30705

      public 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 Lcpp;b:F
    • INITIAL_SATURATION_LEVEL

      public static final float INITIAL_SATURATION_LEVEL
      The 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 Lcpp;c:F
    • field_30707

      public 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 Lcpp;d:F
    • EXHAUSTION_UNIT

      public static final float EXHAUSTION_UNIT
      A 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 Lcpp;e:F
    • SLOW_HEALING_STARVING_INTERVAL

      public static final int SLOW_HEALING_STARVING_INTERVAL
      When 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 Lcpp;f:I
    • FAST_HEALING_INTERVAL

      public static final int FAST_HEALING_INTERVAL
      When 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 Lcpp;g:I
    • SLOW_HEALING_FOOD_LEVEL

      public static final int SLOW_HEALING_FOOD_LEVEL
      The 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 Lcpp;h:I
    • EXHAUSTION_PER_HITPOINT

      public static final int EXHAUSTION_PER_HITPOINT
      The 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 Lcpp;i:I
    • STARVING_FOOD_LEVEL

      public static final int STARVING_FOOD_LEVEL
      The 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 Lcpp;j:I
    • field_30714

      public 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 Lcpp;k:F
    • field_30715

      public 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 Lcpp;l:F
    • field_30716

      public 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 Lcpp;m:F
    • field_30717

      public 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 Lcpp;n:F
    • field_30718

      public 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 Lcpp;o:F
    • field_30719

      public 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 Lcpp;p:F
    • field_30720

      public 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 Lcpp;q:F
    • field_30721

      public 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 Lcpp;r:F
    • field_30722

      public 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 Lcpp;s:F
    • field_30723

      public 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 Lcpp;t:F
    • field_30724

      public 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 Lcpp;u:F
    • field_30726

      public 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 Lcpp;v:F
    • field_30727

      public 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 Lcpp;w:F
    • field_30728

      public 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 Lcpp;x:F
    • field_30729

      public 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 Lcpp;y:F
  • Constructor Details

    • HungerConstants

      public HungerConstants()
  • Method Details

    • calculateSaturation

      public 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 Lcpp;a(IF)F