public class Stat<T> extends ScoreCriteria
ScoreCriteria.RenderType
Modifier and Type | Field and Description |
---|---|
private IStatFormatter |
formatter |
private StatType<T> |
type |
private T |
value |
AIR, ARMOR, DEATH_COUNT, DUMMY, FOOD, HEALTH, INSTANCES, KILLED_BY_TEAM, LEVEL, PLAYER_KILL_COUNT, TEAM_KILL, TOTAL_KILL_COUNT, TRIGGER, XP
Modifier | Constructor and Description |
---|---|
protected |
Stat(StatType<T> typeIn,
T valueIn,
IStatFormatter formatterIn) |
Modifier and Type | Method and Description |
---|---|
static <T> java.lang.String |
buildName(StatType<T> typeIn,
T valueIn) |
boolean |
equals(java.lang.Object p_equals_1_) |
java.lang.String |
format(int number) |
StatType<T> |
getType() |
T |
getValue() |
int |
hashCode() |
private static <T> java.lang.String |
locationToKey(ResourceLocation id) |
java.lang.String |
toString() |
func_216390_a, getName, getRenderType, isReadOnly
private final IStatFormatter formatter
private final T value
protected Stat(StatType<T> typeIn, T valueIn, IStatFormatter formatterIn)
public static <T> java.lang.String buildName(StatType<T> typeIn, T valueIn)
private static <T> java.lang.String locationToKey(@Nullable ResourceLocation id)
public T getValue()
public java.lang.String format(int number)
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object