类 HungerManager
- java.lang.Object
-
- net.minecraft.entity.player.HungerManager
-
public class HungerManager extends Object
- Mappings:
Namespace Name official blhintermediary net/minecraft/class_1702named net/minecraft/entity/player/HungerManager
-
-
字段概要
字段 修饰符和类型 字段 说明 private floatexhaustionprivate intfoodLevelprivate floatfoodSaturationLevelprivate intfoodStarvationTimerprivate intprevFoodLevel
-
构造器概要
构造器 构造器 说明 HungerManager()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidadd(int food, float saturationModifier)voidaddExhaustion(float exhaustion)voideat(Item item, ItemStack stack)floatgetExhaustion()intgetFoodLevel()intgetPrevFoodLevel()floatgetSaturationLevel()booleanisNotFull()voidreadNbt(CompoundTag nbt)voidsetExhaustion(float exhaustion)voidsetFoodLevel(int foodLevel)voidsetSaturationLevelClient(float saturationLevel)voidupdate(PlayerEntity player)voidwriteNbt(CompoundTag nbt)
-
-
-
字段详细资料
-
foodLevel
private int foodLevel
- Mappings:
Namespace Name Mixin selector official aLblh;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 bLblh;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 cLblh;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 dLblh;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 eLblh;e:Iintermediary field_7754Lnet/minecraft/class_1702;field_7754:Inamed prevFoodLevelLnet/minecraft/entity/player/HungerManager;prevFoodLevel:I
-
-
方法详细资料
-
add
public void add(int food, float saturationModifier)- Mappings:
Namespace Name Mixin selector official aLblh;a(IF)Vintermediary method_7585Lnet/minecraft/class_1702;method_7585(IF)Vnamed addLnet/minecraft/entity/player/HungerManager;add(IF)V
-
eat
public void eat(Item item, ItemStack stack)
- Mappings:
Namespace Name Mixin selector official aLblh;a(Lbpn;Lbpr;)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
public void update(PlayerEntity player)
- Mappings:
Namespace Name Mixin selector official aLblh;a(Lbjf;)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
-
readNbt
public void readNbt(CompoundTag nbt)
- Mappings:
Namespace Name Mixin selector official aLblh;a(Lmv;)Vintermediary method_7584Lnet/minecraft/class_1702;method_7584(Lnet/minecraft/class_2487;)Vnamed readNbtLnet/minecraft/entity/player/HungerManager;readNbt(Lnet/minecraft/nbt/CompoundTag;)V
-
writeNbt
public void writeNbt(CompoundTag nbt)
- Mappings:
Namespace Name Mixin selector official bLblh;b(Lmv;)Vintermediary method_7582Lnet/minecraft/class_1702;method_7582(Lnet/minecraft/class_2487;)Vnamed writeNbtLnet/minecraft/entity/player/HungerManager;writeNbt(Lnet/minecraft/nbt/CompoundTag;)V
-
getFoodLevel
public int getFoodLevel()
- Mappings:
Namespace Name Mixin selector official aLblh;a()Iintermediary method_7586Lnet/minecraft/class_1702;method_7586()Inamed getFoodLevelLnet/minecraft/entity/player/HungerManager;getFoodLevel()I
-
getPrevFoodLevel
public int getPrevFoodLevel()
- Mappings:
Namespace Name Mixin selector official bLblh;b()Iintermediary method_35217Lnet/minecraft/class_1702;method_35217()Inamed getPrevFoodLevelLnet/minecraft/entity/player/HungerManager;getPrevFoodLevel()I
-
isNotFull
public boolean isNotFull()
- Mappings:
Namespace Name Mixin selector official cLblh;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 aLblh;a(F)Vintermediary method_7583Lnet/minecraft/class_1702;method_7583(F)Vnamed addExhaustionLnet/minecraft/entity/player/HungerManager;addExhaustion(F)V
-
getExhaustion
public float getExhaustion()
- Mappings:
Namespace Name Mixin selector official dLblh;d()Fintermediary method_35219Lnet/minecraft/class_1702;method_35219()Fnamed getExhaustionLnet/minecraft/entity/player/HungerManager;getExhaustion()F
-
getSaturationLevel
public float getSaturationLevel()
- Mappings:
Namespace Name Mixin selector official eLblh;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 aLblh;a(I)Vintermediary method_7580Lnet/minecraft/class_1702;method_7580(I)Vnamed setFoodLevelLnet/minecraft/entity/player/HungerManager;setFoodLevel(I)V
-
setSaturationLevelClient
public void setSaturationLevelClient(float saturationLevel)
- Mappings:
Namespace Name Mixin selector official bLblh;b(F)Vintermediary method_7581Lnet/minecraft/class_1702;method_7581(F)Vnamed setSaturationLevelClientLnet/minecraft/entity/player/HungerManager;setSaturationLevelClient(F)V
-
setExhaustion
public void setExhaustion(float exhaustion)
- Mappings:
Namespace Name Mixin selector official cLblh;c(F)Vintermediary method_35218Lnet/minecraft/class_1702;method_35218(F)Vnamed setExhaustionLnet/minecraft/entity/player/HungerManager;setExhaustion(F)V
-
-