Package net.minecraft.stats
Class Stat<T>
- java.lang.Object
-
- net.minecraft.scoreboard.ScoreCriteria
-
- net.minecraft.stats.Stat<T>
-
public class Stat<T> extends ScoreCriteria
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.scoreboard.ScoreCriteria
ScoreCriteria.RenderType
-
-
Field Summary
Fields Modifier and Type Field Description private IStatFormatter
formatter
private StatType<T>
type
private T
value
-
Fields inherited from class net.minecraft.scoreboard.ScoreCriteria
AIR, ARMOR, CRITERIA_BY_NAME, DEATH_COUNT, DUMMY, EXPERIENCE, FOOD, HEALTH, KILL_COUNT_ALL, KILL_COUNT_PLAYERS, KILLED_BY_TEAM, LEVEL, TEAM_KILL, TRIGGER
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Stat(StatType<T> p_i47903_1_, T p_i47903_2_, IStatFormatter p_i47903_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> java.lang.String
buildName(StatType<T> p_197918_0_, T p_197918_1_)
boolean
equals(java.lang.Object p_equals_1_)
java.lang.String
format(int p_75968_1_)
StatType<T>
getType()
T
getValue()
int
hashCode()
private static <T> java.lang.String
locationToKey(ResourceLocation p_197919_0_)
java.lang.String
toString()
-
Methods inherited from class net.minecraft.scoreboard.ScoreCriteria
byName, getDefaultRenderType, getName, isReadOnly
-
-
-
-
Field Detail
-
formatter
private final IStatFormatter formatter
-
value
private final T value
-
-
Constructor Detail
-
Stat
protected Stat(StatType<T> p_i47903_1_, T p_i47903_2_, IStatFormatter p_i47903_3_)
-
-
Method Detail
-
buildName
public static <T> java.lang.String buildName(StatType<T> p_197918_0_, T p_197918_1_)
-
locationToKey
private static <T> java.lang.String locationToKey(@Nullable ResourceLocation p_197919_0_)
-
getValue
public T getValue()
-
format
public java.lang.String format(int p_75968_1_)
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-