Class Stat<T>


public class Stat<T> extends ScoreboardCriterion
Mappings:
Namespace Name
named net/minecraft/stat/Stat
intermediary net/minecraft/class_3445
official avo
  • Field Details

    • PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,Stat<?>> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/stat/Stat;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_48280 Lnet/minecraft/class_3445;field_48280:Lnet/minecraft/class_9139;
      official a Lavo;a:Lys;
    • formatter

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

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

      private final StatType<T> type
      Mappings:
      Namespace Name Mixin selector
      named type Lnet/minecraft/stat/Stat;type:Lnet/minecraft/stat/StatType;
      intermediary field_15321 Lnet/minecraft/class_3445;field_15321:Lnet/minecraft/class_3448;
      official q Lavo;q:Lavq;
  • Constructor Details

    • Stat

      protected Stat(StatType<T> type, T value, StatFormatter formatter)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/stat/Stat;<init>(Lnet/minecraft/stat/StatType;Ljava/lang/Object;Lnet/minecraft/stat/StatFormatter;)V
      intermediary <init> Lnet/minecraft/class_3445;<init>(Lnet/minecraft/class_3448;Ljava/lang/Object;Lnet/minecraft/class_3446;)V
      official <init> Lavo;<init>(Lavq;Ljava/lang/Object;Lavp;)V
  • Method Details

    • getName

      public static <T> String getName(StatType<T> type, T value)
      Mappings:
      Namespace Name Mixin selector
      named getName Lnet/minecraft/stat/Stat;getName(Lnet/minecraft/stat/StatType;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;
      official a Lavo;a(Lavq;Ljava/lang/Object;)Ljava/lang/String;
    • getName

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

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

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

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      named equals Lnet/minecraft/stat/Stat;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_3445;equals(Ljava/lang/Object;)Z
      official equals Lavo;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object