类 HungerManager


  • public class HungerManager
    extends Object
    Mappings:
    Namespace Name
    official blh
    intermediary net/minecraft/class_1702
    named net/minecraft/entity/player/HungerManager
    • 字段详细资料

      • foodLevel

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

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

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

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

        private int prevFoodLevel
        Mappings:
        Namespace Name Mixin selector
        official e Lblh;e:I
        intermediary field_7754 Lnet/minecraft/class_1702;field_7754:I
        named prevFoodLevel Lnet/minecraft/entity/player/HungerManager;prevFoodLevel:I
    • 构造器详细资料

      • HungerManager

        public HungerManager()
    • 方法详细资料

      • add

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

        public void eat​(Item item,
                        ItemStack stack)
        Mappings:
        Namespace Name Mixin selector
        official a Lblh;a(Lbpn;Lbpr;)V
        intermediary method_7579 Lnet/minecraft/class_1702;method_7579(Lnet/minecraft/class_1792;Lnet/minecraft/class_1799;)V
        named eat Lnet/minecraft/entity/player/HungerManager;eat(Lnet/minecraft/item/Item;Lnet/minecraft/item/ItemStack;)V
      • update

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

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

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

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

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

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

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

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

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

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

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

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