类 Stat<T>


  • public class Stat<T>
    extends ScoreboardCriterion
    Mappings:
    Namespace Name
    official afd
    intermediary net/minecraft/class_3445
    named net/minecraft/stat/Stat
    • 字段详细资料

      • formatter

        private final StatFormatter formatter
        Mappings:
        Namespace Name Mixin selector
        official o Lafd;o:Lafe;
        intermediary field_15319 Lnet/minecraft/class_3445;field_15319:Lnet/minecraft/class_3446;
        named formatter Lnet/minecraft/stat/Stat;formatter:Lnet/minecraft/stat/StatFormatter;
      • value

        private final T value
        Mappings:
        Namespace Name Mixin selector
        official p Lafd;p:Ljava/lang/Object;
        intermediary field_15320 Lnet/minecraft/class_3445;field_15320:Ljava/lang/Object;
        named value Lnet/minecraft/stat/Stat;value:Ljava/lang/Object;
      • type

        private final StatType<T> type
        Mappings:
        Namespace Name Mixin selector
        official q Lafd;q:Laff;
        intermediary field_15321 Lnet/minecraft/class_3445;field_15321:Lnet/minecraft/class_3448;
        named type Lnet/minecraft/stat/Stat;type:Lnet/minecraft/stat/StatType;
    • 构造器详细资料

      • Stat

        protected Stat​(StatType<T> type,
                       T value,
                       StatFormatter formatter)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lafd;<init>(Laff;Ljava/lang/Object;Lafe;)V
        intermediary <init> Lnet/minecraft/class_3445;<init>(Lnet/minecraft/class_3448;Ljava/lang/Object;Lnet/minecraft/class_3446;)V
        named <init> Lnet/minecraft/stat/Stat;<init>(Lnet/minecraft/stat/StatType;Ljava/lang/Object;Lnet/minecraft/stat/StatFormatter;)V
    • 方法详细资料

      • getName

        public static <T> String getName​(StatType<T> type,
                                         T value)
        Mappings:
        Namespace Name Mixin selector
        official a Lafd;a(Laff;Ljava/lang/Object;)Ljava/lang/String;
        intermediary method_14950 Lnet/minecraft/class_3445;method_14950(Lnet/minecraft/class_3448;Ljava/lang/Object;)Ljava/lang/String;
        named getName Lnet/minecraft/stat/Stat;getName(Lnet/minecraft/stat/StatType;Ljava/lang/Object;)Ljava/lang/String;
      • getName

        private static <T> String getName​(@Nullable
                                          @Nullable Identifier id)
        Mappings:
        Namespace Name Mixin selector
        official a Lafd;a(Lwp;)Ljava/lang/String;
        intermediary method_14952 Lnet/minecraft/class_3445;method_14952(Lnet/minecraft/class_2960;)Ljava/lang/String;
        named getName Lnet/minecraft/stat/Stat;getName(Lnet/minecraft/util/Identifier;)Ljava/lang/String;
      • getType

        public StatType<T> getType()
        Mappings:
        Namespace Name Mixin selector
        official a Lafd;a()Laff;
        intermediary method_14949 Lnet/minecraft/class_3445;method_14949()Lnet/minecraft/class_3448;
        named getType Lnet/minecraft/stat/Stat;getType()Lnet/minecraft/stat/StatType;
      • getValue

        public T getValue()
        Mappings:
        Namespace Name Mixin selector
        official b Lafd;b()Ljava/lang/Object;
        intermediary method_14951 Lnet/minecraft/class_3445;method_14951()Ljava/lang/Object;
        named getValue Lnet/minecraft/stat/Stat;getValue()Ljava/lang/Object;
      • format

        public String format​(int int2)
        Mappings:
        Namespace Name Mixin selector
        official a Lafd;a(I)Ljava/lang/String;
        intermediary method_14953 Lnet/minecraft/class_3445;method_14953(I)Ljava/lang/String;
        named format Lnet/minecraft/stat/Stat;format(I)Ljava/lang/String;
      • equals

        public boolean equals​(Object o)
        覆盖:
        equals 在类中 Object
        Mappings:
        Namespace Name Mixin selector
        official equals Lafd;equals(Ljava/lang/Object;)Z
        intermediary equals Lnet/minecraft/class_3445;equals(Ljava/lang/Object;)Z
        named equals Lnet/minecraft/stat/Stat;equals(Ljava/lang/Object;)Z
      • hashCode

        public int hashCode()
        覆盖:
        hashCode 在类中 Object
        Mappings:
        Namespace Name Mixin selector
        official hashCode Lafd;hashCode()I
        intermediary hashCode Lnet/minecraft/class_3445;hashCode()I
        named hashCode Lnet/minecraft/stat/Stat;hashCode()I
      • toString

        public String toString()
        覆盖:
        toString 在类中 Object
        Mappings:
        Namespace Name Mixin selector
        official toString Lafd;toString()Ljava/lang/String;
        intermediary toString Lnet/minecraft/class_3445;toString()Ljava/lang/String;
        named toString Lnet/minecraft/stat/Stat;toString()Ljava/lang/String;