类 StatHandler
- java.lang.Object
-
- net.minecraft.stat.StatHandler
-
- 直接已知子类:
ServerStatHandler
public class StatHandler extends Object
- Mappings:
Namespace Name official afhintermediary net/minecraft/class_3469named net/minecraft/stat/StatHandler
-
-
字段概要
字段 修饰符和类型 字段 说明 protected Object2IntMap<Stat<?>>statMap
-
构造器概要
构造器 构造器 说明 StatHandler()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intgetStat(Stat<?> stat)<T> intgetStat(StatType<T> type, T stat)voidincreaseStat(PlayerEntity player, Stat<?> stat, int value)voidsetStat(PlayerEntity player, Stat<?> stat, int value)
-
-
-
字段详细资料
-
statMap
protected final Object2IntMap<Stat<?>> statMap
- Mappings:
Namespace Name Mixin selector official aLafh;a:Lit/unimi/dsi/fastutil/objects/Object2IntMap;intermediary field_15431Lnet/minecraft/class_3469;field_15431:Lit/unimi/dsi/fastutil/objects/Object2IntMap;named statMapLnet/minecraft/stat/StatHandler;statMap:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-
-
方法详细资料
-
increaseStat
public void increaseStat(PlayerEntity player, Stat<?> stat, int value)
- Mappings:
Namespace Name Mixin selector official bLafh;b(Lbjf;Lafd;I)Vintermediary method_15022Lnet/minecraft/class_3469;method_15022(Lnet/minecraft/class_1657;Lnet/minecraft/class_3445;I)Vnamed increaseStatLnet/minecraft/stat/StatHandler;increaseStat(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/stat/Stat;I)V
-
setStat
public void setStat(PlayerEntity player, Stat<?> stat, int value)
- Mappings:
Namespace Name Mixin selector official aLafh;a(Lbjf;Lafd;I)Vintermediary method_15023Lnet/minecraft/class_3469;method_15023(Lnet/minecraft/class_1657;Lnet/minecraft/class_3445;I)Vnamed setStatLnet/minecraft/stat/StatHandler;setStat(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/stat/Stat;I)V
-
getStat
public <T> int getStat(StatType<T> type, T stat)
- Mappings:
Namespace Name Mixin selector official aLafh;a(Laff;Ljava/lang/Object;)Iintermediary method_15024Lnet/minecraft/class_3469;method_15024(Lnet/minecraft/class_3448;Ljava/lang/Object;)Inamed getStatLnet/minecraft/stat/StatHandler;getStat(Lnet/minecraft/stat/StatType;Ljava/lang/Object;)I
-
getStat
public int getStat(Stat<?> stat)
- Mappings:
Namespace Name Mixin selector official aLafh;a(Lafd;)Iintermediary method_15025Lnet/minecraft/class_3469;method_15025(Lnet/minecraft/class_3445;)Inamed getStatLnet/minecraft/stat/StatHandler;getStat(Lnet/minecraft/stat/Stat;)I
-
-