Class StatType<T>

java.lang.Object
net.minecraft.stat.StatType<T>
All Implemented Interfaces:
Iterable<Stat<T>>

public class StatType<T> extends Object implements Iterable<Stat<T>>
Mappings:
Namespace Name
official asb
intermediary net/minecraft/class_3448
named net/minecraft/stat/StatType
  • Field Details

    • registry

      private final Registry<T> registry
      Mappings:
      Namespace Name Mixin selector
      official a Lasb;a:Lit;
      intermediary field_15323 Lnet/minecraft/class_3448;field_15323:Lnet/minecraft/class_2378;
      named registry Lnet/minecraft/stat/StatType;registry:Lnet/minecraft/registry/Registry;
    • stats

      private final Map<T,Stat<T>> stats
      Mappings:
      Namespace Name Mixin selector
      official b Lasb;b:Ljava/util/Map;
      intermediary field_15324 Lnet/minecraft/class_3448;field_15324:Ljava/util/Map;
      named stats Lnet/minecraft/stat/StatType;stats:Ljava/util/Map;
    • name

      private final Text name
      Mappings:
      Namespace Name Mixin selector
      official c Lasb;c:Lvf;
      intermediary field_26382 Lnet/minecraft/class_3448;field_26382:Lnet/minecraft/class_2561;
      named name Lnet/minecraft/stat/StatType;name:Lnet/minecraft/text/Text;
  • Constructor Details

    • StatType

      public StatType(Registry<T> registry, Text name)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lasb;<init>(Lit;Lvf;)V
      intermediary <init> Lnet/minecraft/class_3448;<init>(Lnet/minecraft/class_2378;Lnet/minecraft/class_2561;)V
      named <init> Lnet/minecraft/stat/StatType;<init>(Lnet/minecraft/registry/Registry;Lnet/minecraft/text/Text;)V
  • Method Details

    • hasStat

      public boolean hasStat(T key)
      Mappings:
      Namespace Name Mixin selector
      official a Lasb;a(Ljava/lang/Object;)Z
      intermediary method_14958 Lnet/minecraft/class_3448;method_14958(Ljava/lang/Object;)Z
      named hasStat Lnet/minecraft/stat/StatType;hasStat(Ljava/lang/Object;)Z
    • getOrCreateStat

      public Stat<T> getOrCreateStat(T key, StatFormatter formatter)
      Mappings:
      Namespace Name Mixin selector
      official a Lasb;a(Ljava/lang/Object;Lasa;)Larz;
      intermediary method_14955 Lnet/minecraft/class_3448;method_14955(Ljava/lang/Object;Lnet/minecraft/class_3446;)Lnet/minecraft/class_3445;
      named getOrCreateStat Lnet/minecraft/stat/StatType;getOrCreateStat(Ljava/lang/Object;Lnet/minecraft/stat/StatFormatter;)Lnet/minecraft/stat/Stat;
    • getRegistry

      public Registry<T> getRegistry()
      Mappings:
      Namespace Name Mixin selector
      official a Lasb;a()Lit;
      intermediary method_14959 Lnet/minecraft/class_3448;method_14959()Lnet/minecraft/class_2378;
      named getRegistry Lnet/minecraft/stat/StatType;getRegistry()Lnet/minecraft/registry/Registry;
    • iterator

      public Iterator<Stat<T>> iterator()
      Specified by:
      iterator in interface Iterable<T>
    • getOrCreateStat

      public Stat<T> getOrCreateStat(T key)
      Mappings:
      Namespace Name Mixin selector
      official b Lasb;b(Ljava/lang/Object;)Larz;
      intermediary method_14956 Lnet/minecraft/class_3448;method_14956(Ljava/lang/Object;)Lnet/minecraft/class_3445;
      named getOrCreateStat Lnet/minecraft/stat/StatType;getOrCreateStat(Ljava/lang/Object;)Lnet/minecraft/stat/Stat;
    • getName

      public Text getName()
      Mappings:
      Namespace Name Mixin selector
      official b Lasb;b()Lvf;
      intermediary method_30739 Lnet/minecraft/class_3448;method_30739()Lnet/minecraft/class_2561;
      named getName Lnet/minecraft/stat/StatType;getName()Lnet/minecraft/text/Text;