Class Stat<T>


public class Stat<T> extends ObjectiveCriteria
  • Field Details

    • formatter

      private final StatFormatter formatter
    • value

      private final T value
    • type

      private final StatType<T> type
  • Constructor Details

  • Method Details

    • buildName

      public static <T> String buildName(StatType<T> p_12863_, T p_12864_)
    • locationToKey

      private static <T> String locationToKey(@Nullable ResourceLocation p_12866_)
    • getType

      public StatType<T> getType()
    • getValue

      public T getValue()
    • format

      public String format(int p_12861_)
    • equals

      public boolean equals(Object p_12869_)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object