Class HungerManager

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

public class HungerManager extends Object
Mappings:
Namespace Name
named net/minecraft/entity/player/HungerManager
intermediary net/minecraft/class_1702
official cpq
  • Field Details

    • foodLevel

      private int foodLevel
      Mappings:
      Namespace Name Mixin selector
      named foodLevel Lnet/minecraft/entity/player/HungerManager;foodLevel:I
      intermediary field_7756 Lnet/minecraft/class_1702;field_7756:I
      official a Lcpq;a:I
    • saturationLevel

      private float saturationLevel
      Mappings:
      Namespace Name Mixin selector
      named saturationLevel Lnet/minecraft/entity/player/HungerManager;saturationLevel:F
      intermediary field_7753 Lnet/minecraft/class_1702;field_7753:F
      official b Lcpq;b:F
    • exhaustion

      private float exhaustion
      Mappings:
      Namespace Name Mixin selector
      named exhaustion Lnet/minecraft/entity/player/HungerManager;exhaustion:F
      intermediary field_7752 Lnet/minecraft/class_1702;field_7752:F
      official c Lcpq;c:F
    • foodTickTimer

      private int foodTickTimer
      Mappings:
      Namespace Name Mixin selector
      named foodTickTimer Lnet/minecraft/entity/player/HungerManager;foodTickTimer:I
      intermediary field_7755 Lnet/minecraft/class_1702;field_7755:I
      official d Lcpq;d:I
    • prevFoodLevel

      private int prevFoodLevel
      Mappings:
      Namespace Name Mixin selector
      named prevFoodLevel Lnet/minecraft/entity/player/HungerManager;prevFoodLevel:I
      intermediary field_7754 Lnet/minecraft/class_1702;field_7754:I
      official e Lcpq;e:I
  • Constructor Details

    • HungerManager

      public HungerManager()
  • Method Details

    • addInternal

      private void addInternal(int nutrition, float saturation)
      Mappings:
      Namespace Name Mixin selector
      named addInternal Lnet/minecraft/entity/player/HungerManager;addInternal(IF)V
      intermediary method_59684 Lnet/minecraft/class_1702;method_59684(IF)V
      official b Lcpq;b(IF)V
    • add

      public void add(int food, float saturationModifier)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/entity/player/HungerManager;add(IF)V
      intermediary method_7585 Lnet/minecraft/class_1702;method_7585(IF)V
      official a Lcpq;a(IF)V
    • eat

      public void eat(FoodComponent foodComponent)
      Mappings:
      Namespace Name Mixin selector
      named eat Lnet/minecraft/entity/player/HungerManager;eat(Lnet/minecraft/component/type/FoodComponent;)V
      intermediary method_7579 Lnet/minecraft/class_1702;method_7579(Lnet/minecraft/class_4174;)V
      official a Lcpq;a(Lcpr;)V
    • update

      public void update(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      named update Lnet/minecraft/entity/player/HungerManager;update(Lnet/minecraft/entity/player/PlayerEntity;)V
      intermediary method_7588 Lnet/minecraft/class_1702;method_7588(Lnet/minecraft/class_1657;)V
      official a Lcpq;a(Lcmx;)V
    • readNbt

      public void readNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      named readNbt Lnet/minecraft/entity/player/HungerManager;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_7584 Lnet/minecraft/class_1702;method_7584(Lnet/minecraft/class_2487;)V
      official a Lcpq;a(Lub;)V
    • writeNbt

      public void writeNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      named writeNbt Lnet/minecraft/entity/player/HungerManager;writeNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_7582 Lnet/minecraft/class_1702;method_7582(Lnet/minecraft/class_2487;)V
      official b Lcpq;b(Lub;)V
    • getFoodLevel

      public int getFoodLevel()
      Mappings:
      Namespace Name Mixin selector
      named getFoodLevel Lnet/minecraft/entity/player/HungerManager;getFoodLevel()I
      intermediary method_7586 Lnet/minecraft/class_1702;method_7586()I
      official a Lcpq;a()I
    • getPrevFoodLevel

      public int getPrevFoodLevel()
      Mappings:
      Namespace Name Mixin selector
      named getPrevFoodLevel Lnet/minecraft/entity/player/HungerManager;getPrevFoodLevel()I
      intermediary method_35217 Lnet/minecraft/class_1702;method_35217()I
      official b Lcpq;b()I
    • isNotFull

      public boolean isNotFull()
      Mappings:
      Namespace Name Mixin selector
      named isNotFull Lnet/minecraft/entity/player/HungerManager;isNotFull()Z
      intermediary method_7587 Lnet/minecraft/class_1702;method_7587()Z
      official c Lcpq;c()Z
    • addExhaustion

      public void addExhaustion(float exhaustion)
      Mappings:
      Namespace Name Mixin selector
      named addExhaustion Lnet/minecraft/entity/player/HungerManager;addExhaustion(F)V
      intermediary method_7583 Lnet/minecraft/class_1702;method_7583(F)V
      official a Lcpq;a(F)V
    • getExhaustion

      public float getExhaustion()
      Mappings:
      Namespace Name Mixin selector
      named getExhaustion Lnet/minecraft/entity/player/HungerManager;getExhaustion()F
      intermediary method_35219 Lnet/minecraft/class_1702;method_35219()F
      official d Lcpq;d()F
    • getSaturationLevel

      public float getSaturationLevel()
      Mappings:
      Namespace Name Mixin selector
      named getSaturationLevel Lnet/minecraft/entity/player/HungerManager;getSaturationLevel()F
      intermediary method_7589 Lnet/minecraft/class_1702;method_7589()F
      official e Lcpq;e()F
    • setFoodLevel

      public void setFoodLevel(int foodLevel)
      Mappings:
      Namespace Name Mixin selector
      named setFoodLevel Lnet/minecraft/entity/player/HungerManager;setFoodLevel(I)V
      intermediary method_7580 Lnet/minecraft/class_1702;method_7580(I)V
      official a Lcpq;a(I)V
    • setSaturationLevel

      public void setSaturationLevel(float saturationLevel)
      Mappings:
      Namespace Name Mixin selector
      named setSaturationLevel Lnet/minecraft/entity/player/HungerManager;setSaturationLevel(F)V
      intermediary method_7581 Lnet/minecraft/class_1702;method_7581(F)V
      official b Lcpq;b(F)V
    • setExhaustion

      public void setExhaustion(float exhaustion)
      Mappings:
      Namespace Name Mixin selector
      named setExhaustion Lnet/minecraft/entity/player/HungerManager;setExhaustion(F)V
      intermediary method_35218 Lnet/minecraft/class_1702;method_35218(F)V
      official c Lcpq;c(F)V