Class Stat

java.lang.Object
net.minecraft.stat.Stat
Direct Known Subclasses:
Achievement, RegisteringStat, StatEntity

public class Stat extends Object
Mappings:
Namespace Name
intermediary net/minecraft/class_139
glue class_534
server ns
client vr
named net/minecraft/stat/Stat
  • Field Details

    • NUMBER_FORMAT

      private static NumberFormat NUMBER_FORMAT
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2023 Lnet/minecraft/class_139;field_2023:Ljava/text/NumberFormat;
      glue field_2246 Lclass_534;field_2246:Ljava/text/NumberFormat;
      server b Lns;b:Ljava/text/NumberFormat;
      client b Lvr;b:Ljava/text/NumberFormat;
      named NUMBER_FORMAT Lnet/minecraft/stat/Stat;NUMBER_FORMAT:Ljava/text/NumberFormat;
    • NUMBER_FORMATTER

      public static StatFormatter NUMBER_FORMATTER
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2029 Lnet/minecraft/class_139;field_2029:Lnet/minecraft/class_498;
      glue field_2252 Lclass_534;field_2252:Lclass_550;
      server i Lns;i:Loe;
      client i Lvr;i:Lwk;
      named NUMBER_FORMATTER Lnet/minecraft/stat/Stat;NUMBER_FORMATTER:Lnet/minecraft/stat/StatFormatter;
    • DECIMAL_FORMAT

      private static DecimalFormat DECIMAL_FORMAT
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2024 Lnet/minecraft/class_139;field_2024:Ljava/text/DecimalFormat;
      glue field_2247 Lclass_534;field_2247:Ljava/text/DecimalFormat;
      server c Lns;c:Ljava/text/DecimalFormat;
      client c Lvr;c:Ljava/text/DecimalFormat;
      named DECIMAL_FORMAT Lnet/minecraft/stat/Stat;DECIMAL_FORMAT:Ljava/text/DecimalFormat;
    • TIME_FORMATTER

      public static StatFormatter TIME_FORMATTER
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2030 Lnet/minecraft/class_139;field_2030:Lnet/minecraft/class_498;
      glue field_2253 Lclass_534;field_2253:Lclass_550;
      server j Lns;j:Loe;
      client j Lvr;j:Lwk;
      named TIME_FORMATTER Lnet/minecraft/stat/Stat;TIME_FORMATTER:Lnet/minecraft/stat/StatFormatter;
    • DISTANCE_FORMATTER

      public static StatFormatter DISTANCE_FORMATTER
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2031 Lnet/minecraft/class_139;field_2031:Lnet/minecraft/class_498;
      glue field_2254 Lclass_534;field_2254:Lclass_550;
      server k Lns;k:Loe;
      client k Lvr;k:Lwk;
      named DISTANCE_FORMATTER Lnet/minecraft/stat/Stat;DISTANCE_FORMATTER:Lnet/minecraft/stat/StatFormatter;
    • ID

      public final int ID
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2025 Lnet/minecraft/class_139;field_2025:I
      glue field_2248 Lclass_534;field_2248:I
      server e Lns;e:I
      client e Lvr;e:I
      named ID Lnet/minecraft/stat/Stat;ID:I
    • NAME

      public final String NAME
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2026 Lnet/minecraft/class_139;field_2026:Ljava/lang/String;
      glue field_2249 Lclass_534;field_2249:Ljava/lang/String;
      server f Lns;f:Ljava/lang/String;
      client f Lvr;f:Ljava/lang/String;
      named NAME Lnet/minecraft/stat/Stat;NAME:Ljava/lang/String;
    • givenByClient

      public boolean givenByClient
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2027 Lnet/minecraft/class_139;field_2027:Z
      glue field_2250 Lclass_534;field_2250:Z
      server g Lns;g:Z
      client g Lvr;g:Z
      named givenByClient Lnet/minecraft/stat/Stat;givenByClient:Z
    • guid

      public String guid
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2028 Lnet/minecraft/class_139;field_2028:Ljava/lang/String;
      glue field_2251 Lclass_534;field_2251:Ljava/lang/String;
      server h Lns;h:Ljava/lang/String;
      client h Lvr;h:Ljava/lang/String;
      named guid Lnet/minecraft/stat/Stat;guid:Ljava/lang/String;
    • STAT_FORMATTER

      private final StatFormatter STAT_FORMATTER
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2022 Lnet/minecraft/class_139;field_2022:Lnet/minecraft/class_498;
      glue field_2245 Lclass_534;field_2245:Lclass_550;
      server a Lns;a:Loe;
      client a Lvr;a:Lwk;
      named STAT_FORMATTER Lnet/minecraft/stat/Stat;STAT_FORMATTER:Lnet/minecraft/stat/StatFormatter;
  • Constructor Details

    • Stat

      public Stat(int id, String name, StatFormatter statFormatter)
      Mappings:
      Namespace Name Mixin selector
      intermediary <init> Lnet/minecraft/class_139;<init>(ILjava/lang/String;Lnet/minecraft/class_498;)V
      glue <init> Lclass_534;<init>(ILjava/lang/String;Lclass_550;)V
      server <init> Lns;<init>(ILjava/lang/String;Loe;)V
      client <init> Lvr;<init>(ILjava/lang/String;Lwk;)V
      named <init> Lnet/minecraft/stat/Stat;<init>(ILjava/lang/String;Lnet/minecraft/stat/StatFormatter;)V
    • Stat

      public Stat(int id, String name)
      Mappings:
      Namespace Name Mixin selector
      intermediary <init> Lnet/minecraft/class_139;<init>(ILjava/lang/String;)V
      glue <init> Lclass_534;<init>(ILjava/lang/String;)V
      server <init> Lns;<init>(ILjava/lang/String;)V
      client <init> Lvr;<init>(ILjava/lang/String;)V
      named <init> Lnet/minecraft/stat/Stat;<init>(ILjava/lang/String;)V
  • Method Details

    • setGivenByClient

      public Stat setGivenByClient()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1677 Lnet/minecraft/class_139;method_1677()Lnet/minecraft/class_139;
      glue method_1392 Lclass_534;method_1392()Lclass_534;
      server e Lns;e()Lns;
      client h Lvr;h()Lvr;
      named setGivenByClient Lnet/minecraft/stat/Stat;setGivenByClient()Lnet/minecraft/stat/Stat;
    • register

      public Stat register()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1676 Lnet/minecraft/class_139;method_1676()Lnet/minecraft/class_139;
      glue method_1391 Lclass_534;method_1391()Lclass_534;
      server d Lns;d()Lns;
      client g Lvr;g()Lvr;
      named register Lnet/minecraft/stat/Stat;register()Lnet/minecraft/stat/Stat;
    • isAchievement

      @Environment(CLIENT) public boolean isAchievement()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1678 Lnet/minecraft/class_139;method_1678()Z
      glue method_1976 Lclass_534;method_1976()Z
      server method_1678 Lns;method_1678()Z
      client d Lvr;d()Z
      named isAchievement Lnet/minecraft/stat/Stat;isAchievement()Z
    • format

      @Environment(CLIENT) public String format(int int2)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1679 Lnet/minecraft/class_139;method_1679(I)Ljava/lang/String;
      glue method_2228 Lclass_534;method_2228(I)Ljava/lang/String;
      server method_1679 Lns;method_1679(I)Ljava/lang/String;
      client a Lvr;a(I)Ljava/lang/String;
      named format Lnet/minecraft/stat/Stat;format(I)Ljava/lang/String;
    • toString

      public String toString()
      Overrides:
      toString in class Object