Uses of Class
net.minecraft.stat.Stat
Package
Description
-
Uses of Stat in net.minecraft.block
Modifier and TypeMethodDescriptionprotected Stat
<Identifier> ChestBlock.getOpenStat()
protected Stat
<Identifier> TrappedChestBlock.getOpenStat()
-
Uses of Stat in net.minecraft.client.gui.screen
Modifier and TypeFieldDescriptionprivate final Stat
<Identifier> StatsScreen.GeneralStatsListWidget.Entry.stat
Modifier and TypeMethodDescription(package private) static String
StatsScreen.getStatTranslationKey
(Stat<Identifier> stat) protected void
StatsScreen.ItemStatsListWidget.Entry.render
(DrawContext context, @Nullable Stat<?> stat, int x, int y, boolean white) -
Uses of Stat in net.minecraft.entity.player
Modifier and TypeMethodDescriptionvoid
PlayerEntity.increaseStat
(Stat<?> stat, int amount) void
PlayerEntity.incrementStat
(Stat<?> stat) void
-
Uses of Stat in net.minecraft.network.packet.s2c.play
Modifier and TypeFieldDescriptionprivate static final PacketCodec
<RegistryByteBuf, Object2IntMap<Stat<?>>> StatisticsS2CPacket.STAT_MAP_CODEC
private final Object2IntMap
<Stat<?>> StatisticsS2CPacket.stats
The field for thestats
record component.Modifier and TypeMethodDescriptionObject2IntMap
<Stat<?>> StatisticsS2CPacket.stats()
Returns the value of thestats
record component. -
Uses of Stat in net.minecraft.predicate.entity
Modifier and TypeFieldDescriptionPlayerPredicate.StatMatcher.stat
The field for thestat
record component.Modifier and TypeMethodDescriptionPlayerPredicate.StatMatcher.stat()
Returns the value of thestat
record component.ModifierConstructorDescriptionprivate
StatMatcher
(StatType<T> statType, RegistryEntry<T> registryEntry, NumberRange.IntRange intRange, Supplier<Stat<T>> supplier) -
Uses of Stat in net.minecraft.server.network
Modifier and TypeMethodDescriptionvoid
ServerPlayerEntity.increaseStat
(Stat<?> stat, int amount) void
-
Uses of Stat in net.minecraft.stat
Modifier and TypeFieldDescriptionstatic final PacketCodec
<RegistryByteBuf, Stat<?>> Stat.PACKET_CODEC
private final PacketCodec
<RegistryByteBuf, Stat<T>> StatType.packetCodec
ServerStatHandler.pendingStats
protected final Object2IntMap
<Stat<?>> StatHandler.statMap
StatType.stats
Modifier and TypeMethodDescriptionStatType.getOrCreateStat
(T key) StatType.getOrCreateStat
(T key, StatFormatter formatter) Modifier and TypeMethodDescriptionServerStatHandler.createStat
(StatType<T> type, String id) StatType.getPacketCodec()
StatType.iterator()
ServerStatHandler.takePendingStats()
Modifier and TypeMethodDescriptionint
private static <T> Identifier
void
StatHandler.increaseStat
(PlayerEntity player, Stat<?> stat, int value) void
ServerStatHandler.setStat
(PlayerEntity player, Stat<?> stat, int value) void
StatHandler.setStat
(PlayerEntity player, Stat<?> stat, int value)