Class StatType<T>

All Implemented Interfaces:
Iterable<Stat<T>>, IForgeRegistryEntry<StatType<?>>

public class StatType<T> extends ForgeRegistryEntry<StatType<?>> implements Iterable<Stat<T>>
  • Field Details

    • registry

      private final Registry<T> registry
    • map

      private final Map<T,​Stat<T>> map
    • displayName

      @Nullable private Component displayName
  • Constructor Details

    • StatType

      public StatType(Registry<T> p_12892_)
  • Method Details

    • contains

      public boolean contains(T p_12898_)
    • get

      public Stat<T> get(T p_12900_, StatFormatter p_12901_)
    • getRegistry

      public Registry<T> getRegistry()
    • iterator

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

      public Stat<T> get(T p_12903_)
    • getTranslationKey

      public String getTranslationKey()
    • getDisplayName

      public Component getDisplayName()