类 StatHandler

  • 直接已知子类:
    ServerStatHandler

    public class StatHandler
    extends Object
    Mappings:
    Namespace Name
    official afh
    intermediary net/minecraft/class_3469
    named net/minecraft/stat/StatHandler
    • 字段详细资料

      • statMap

        protected final Object2IntMap<Stat<?>> statMap
        Mappings:
        Namespace Name Mixin selector
        official a Lafh;a:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
        intermediary field_15431 Lnet/minecraft/class_3469;field_15431:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
        named statMap Lnet/minecraft/stat/StatHandler;statMap:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
    • 构造器详细资料

      • StatHandler

        public StatHandler()
    • 方法详细资料

      • increaseStat

        public void increaseStat​(PlayerEntity player,
                                 Stat<?> stat,
                                 int value)
        Mappings:
        Namespace Name Mixin selector
        official b Lafh;b(Lbjf;Lafd;I)V
        intermediary method_15022 Lnet/minecraft/class_3469;method_15022(Lnet/minecraft/class_1657;Lnet/minecraft/class_3445;I)V
        named increaseStat Lnet/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 a Lafh;a(Lbjf;Lafd;I)V
        intermediary method_15023 Lnet/minecraft/class_3469;method_15023(Lnet/minecraft/class_1657;Lnet/minecraft/class_3445;I)V
        named setStat Lnet/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 a Lafh;a(Laff;Ljava/lang/Object;)I
        intermediary method_15024 Lnet/minecraft/class_3469;method_15024(Lnet/minecraft/class_3448;Ljava/lang/Object;)I
        named getStat Lnet/minecraft/stat/StatHandler;getStat(Lnet/minecraft/stat/StatType;Ljava/lang/Object;)I
      • getStat

        public int getStat​(Stat<?> stat)
        Mappings:
        Namespace Name Mixin selector
        official a Lafh;a(Lafd;)I
        intermediary method_15025 Lnet/minecraft/class_3469;method_15025(Lnet/minecraft/class_3445;)I
        named getStat Lnet/minecraft/stat/StatHandler;getStat(Lnet/minecraft/stat/Stat;)I