Uses of Interface
net.minecraft.scoreboard.number.NumberFormat
Package
Description
-
Uses of NumberFormat in net.minecraft.network.packet.s2c.play
Modifier and TypeFieldDescriptionprivate final @Nullable NumberFormat
ScoreboardObjectiveUpdateS2CPacket.numberFormat
private final @Nullable NumberFormat
ScoreboardScoreUpdateS2CPacket.numberFormat
The field for thenumberFormat
record component.Modifier and TypeMethodDescriptionScoreboardObjectiveUpdateS2CPacket.getNumberFormat()
ScoreboardScoreUpdateS2CPacket.numberFormat()
Returns the value of thenumberFormat
record component.ModifierConstructorDescriptionScoreboardScoreUpdateS2CPacket
(String string, String string2, int int2, @Nullable Text text, @Nullable NumberFormat numberFormat) -
Uses of NumberFormat in net.minecraft.scoreboard
Modifier and TypeFieldDescriptionprivate @Nullable NumberFormat
ScoreboardObjective.numberFormat
private @Nullable NumberFormat
ScoreboardScore.numberFormat
private final @Nullable NumberFormat
ScoreboardEntry.numberFormatOverride
The field for thenumberFormatOverride
record component.Modifier and TypeMethodDescriptionReadableScoreboardScore.getNumberFormat()
ScoreboardObjective.getNumberFormat()
ScoreboardScore.getNumberFormat()
ScoreboardObjective.getNumberFormatOr
(NumberFormat format) ScoreboardEntry.numberFormatOverride()
Returns the value of thenumberFormatOverride
record component.Modifier and TypeMethodDescriptionScoreboard.addObjective
(String name, ScoreboardCriterion criterion, Text displayName, ScoreboardCriterion.RenderType renderType, boolean displayAutoUpdate, @Nullable NumberFormat numberFormat) ScoreboardEntry.formatted
(NumberFormat format) static MutableText
ReadableScoreboardScore.getFormattedScore
(@Nullable ReadableScoreboardScore score, NumberFormat fallbackFormat) default MutableText
ReadableScoreboardScore.getFormattedScore
(NumberFormat fallbackFormat) ScoreboardObjective.getNumberFormatOr
(NumberFormat format) void
ScoreAccess.setNumberFormat
(@Nullable NumberFormat numberFormat) void
ScoreboardObjective.setNumberFormat
(@Nullable NumberFormat numberFormat) void
ScoreboardScore.setNumberFormat
(@Nullable NumberFormat numberFormat) ModifierConstructorDescriptionScoreboardEntry
(String string, int int2, @Nullable Text text, @Nullable NumberFormat numberFormat) ScoreboardObjective
(Scoreboard scoreboard, String name, ScoreboardCriterion criterion, Text displayName, ScoreboardCriterion.RenderType renderType, boolean displayAutoUpdate, @Nullable NumberFormat numberFormat) -
Uses of NumberFormat in net.minecraft.scoreboard.number
Modifier and TypeClassDescriptionclass
class
class
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<NumberFormat>
NumberFormatTypes.CODEC
static final com.mojang.serialization.MapCodec<NumberFormat>
NumberFormatTypes.REGISTRY_CODEC
Modifier and TypeMethodDescriptionstatic <T extends NumberFormat>
voidNumberFormatTypes.toBuf
(PacketByteBuf buf, T format) Modifier and TypeMethodDescriptionstatic NumberFormat
NumberFormatTypes.fromBuf
(PacketByteBuf buf) Modifier and TypeMethodDescriptionNumberFormatType<? extends NumberFormat>
NumberFormat.getType()
-
Uses of NumberFormat in net.minecraft.server.command
Modifier and TypeMethodDescriptionprivate static int
ScoreboardCommand.executeModifyObjectiveFormat
(ServerCommandSource source, ScoreboardObjective objective, @Nullable NumberFormat format) private static int
ScoreboardCommand.executeSetNumberFormat
(ServerCommandSource source, Collection<ScoreHolder> targets, ScoreboardObjective objective, @Nullable NumberFormat numberFormat) int
ScoreboardCommand.NumberFormatCommandExecutor.run
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, @Nullable NumberFormat numberFormat)