Package net.minecraft.entity.player
Class HungerManager
java.lang.Object
net.minecraft.entity.player.HungerManager
public class HungerManager extends Object
- Mappings:
Namespace Name official bjnintermediary net/minecraft/class_1702named net/minecraft/entity/player/HungerManager
-
Field Summary
Fields Modifier and Type Field Description private floatexhaustionprivate intfoodLevelprivate floatfoodSaturationLevelprivate intfoodStarvationTimerprivate intprevFoodLevel -
Constructor Summary
Constructors Constructor Description HungerManager() -
Method Summary
Modifier and Type Method Description voidadd(int food, float saturationModifier)voidaddExhaustion(float exhaustion)voideat(Item item, ItemStack stack)voidfromTag(CompoundTag tag)intgetFoodLevel()floatgetSaturationLevel()booleanisNotFull()voidsetFoodLevel(int foodLevel)voidsetSaturationLevelClient(float saturationLevel)voidtoTag(CompoundTag tag)voidupdate(PlayerEntity player)
-
Field Details
-
foodLevel
private int foodLevel- Mappings:
Namespace Name Mixin selector official aLbjn;a:Iintermediary field_7756Lnet/minecraft/class_1702;field_7756:Inamed foodLevelLnet/minecraft/entity/player/HungerManager;foodLevel:I
-
foodSaturationLevel
private float foodSaturationLevel- Mappings:
Namespace Name Mixin selector official bLbjn;b:Fintermediary field_7753Lnet/minecraft/class_1702;field_7753:Fnamed foodSaturationLevelLnet/minecraft/entity/player/HungerManager;foodSaturationLevel:F
-
exhaustion
private float exhaustion- Mappings:
Namespace Name Mixin selector official cLbjn;c:Fintermediary field_7752Lnet/minecraft/class_1702;field_7752:Fnamed exhaustionLnet/minecraft/entity/player/HungerManager;exhaustion:F
-
foodStarvationTimer
private int foodStarvationTimer- Mappings:
Namespace Name Mixin selector official dLbjn;d:Iintermediary field_7755Lnet/minecraft/class_1702;field_7755:Inamed foodStarvationTimerLnet/minecraft/entity/player/HungerManager;foodStarvationTimer:I
-
prevFoodLevel
private int prevFoodLevel- Mappings:
Namespace Name Mixin selector official eLbjn;e:Iintermediary field_7754Lnet/minecraft/class_1702;field_7754:Inamed prevFoodLevelLnet/minecraft/entity/player/HungerManager;prevFoodLevel:I
-
-
Constructor Details
-
HungerManager
public HungerManager()
-
-
Method Details
-
add
public void add(int food, float saturationModifier)- Mappings:
Namespace Name Mixin selector official aLbjn;a(IF)Vintermediary method_7585Lnet/minecraft/class_1702;method_7585(IF)Vnamed addLnet/minecraft/entity/player/HungerManager;add(IF)V
-
eat
- Mappings:
Namespace Name Mixin selector official aLbjn;a(Lbnr;Lbnv;)Vintermediary method_7579Lnet/minecraft/class_1702;method_7579(Lnet/minecraft/class_1792;Lnet/minecraft/class_1799;)Vnamed eatLnet/minecraft/entity/player/HungerManager;eat(Lnet/minecraft/item/Item;Lnet/minecraft/item/ItemStack;)V
-
update
- Mappings:
Namespace Name Mixin selector official aLbjn;a(Lbhl;)Vintermediary method_7588Lnet/minecraft/class_1702;method_7588(Lnet/minecraft/class_1657;)Vnamed updateLnet/minecraft/entity/player/HungerManager;update(Lnet/minecraft/entity/player/PlayerEntity;)V
-
fromTag
- Mappings:
Namespace Name Mixin selector official aLbjn;a(Lmq;)Vintermediary method_7584Lnet/minecraft/class_1702;method_7584(Lnet/minecraft/class_2487;)Vnamed fromTagLnet/minecraft/entity/player/HungerManager;fromTag(Lnet/minecraft/nbt/CompoundTag;)V
-
toTag
- Mappings:
Namespace Name Mixin selector official bLbjn;b(Lmq;)Vintermediary method_7582Lnet/minecraft/class_1702;method_7582(Lnet/minecraft/class_2487;)Vnamed toTagLnet/minecraft/entity/player/HungerManager;toTag(Lnet/minecraft/nbt/CompoundTag;)V
-
getFoodLevel
public int getFoodLevel()- Mappings:
Namespace Name Mixin selector official aLbjn;a()Iintermediary method_7586Lnet/minecraft/class_1702;method_7586()Inamed getFoodLevelLnet/minecraft/entity/player/HungerManager;getFoodLevel()I
-
isNotFull
public boolean isNotFull()- Mappings:
Namespace Name Mixin selector official cLbjn;c()Zintermediary method_7587Lnet/minecraft/class_1702;method_7587()Znamed isNotFullLnet/minecraft/entity/player/HungerManager;isNotFull()Z
-
addExhaustion
public void addExhaustion(float exhaustion)- Mappings:
Namespace Name Mixin selector official aLbjn;a(F)Vintermediary method_7583Lnet/minecraft/class_1702;method_7583(F)Vnamed addExhaustionLnet/minecraft/entity/player/HungerManager;addExhaustion(F)V
-
getSaturationLevel
public float getSaturationLevel()- Mappings:
Namespace Name Mixin selector official eLbjn;e()Fintermediary method_7589Lnet/minecraft/class_1702;method_7589()Fnamed getSaturationLevelLnet/minecraft/entity/player/HungerManager;getSaturationLevel()F
-
setFoodLevel
public void setFoodLevel(int foodLevel)- Mappings:
Namespace Name Mixin selector official aLbjn;a(I)Vintermediary method_7580Lnet/minecraft/class_1702;method_7580(I)Vnamed setFoodLevelLnet/minecraft/entity/player/HungerManager;setFoodLevel(I)V
-
setSaturationLevelClient
- Mappings:
Namespace Name Mixin selector official bLbjn;b(F)Vintermediary method_7581Lnet/minecraft/class_1702;method_7581(F)Vnamed setSaturationLevelClientLnet/minecraft/entity/player/HungerManager;setSaturationLevelClient(F)V
-