Class Stat<T>


public class Stat<T> extends ScoreCriteria
  • Field Details

    • formatter

      private final IStatFormatter 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_197918_0_, T p_197918_1_)
    • locationToKey

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

      public StatType<T> getType()
    • getValue

      public T getValue()
    • format

      public String format(int p_75968_1_)
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object