net.minecraft.stat

public class Stat<T>

extends ScoreboardCriterion

net.minecraft.stats.Stat
net.minecraft.class_3445
net.minecraft.stat.Stat

Field summary

Modifier and TypeField
public static final PacketCodec<RegistryByteBuf, Stat<?>>
STREAM_CODEC
field_48280
PACKET_CODEC
private final StatFormatter
formatter
field_15319
formatter
private final T
value
field_15320
value
private final StatType<T>
type
field_15321
type

Constructor summary

ModifierConstructor
protected (StatType<T> type, T value, StatFormatter formatter)

Method summary

Modifier and TypeMethod
public static <T> String
buildName(StatType<T> type, T value)
method_14950(class_3448<T> arg0, T arg1)
getName(StatType<T> type, T value)
private static String
locationToKey(Identifier location)
method_14952(class_2960 arg0)
getName(Identifier id)
public StatType<T>
getType()
method_14949()
getType()
public T
getValue()
method_14951()
getValue()
public String
format(int value)
method_14953(int arg0)
format(int value)