Uses of Interface
net.minecraft.scoreboard.number.NumberFormat
Package
Description
-
Uses of NumberFormat in net.minecraft.network.packet.s2c.play
Modifier and TypeFieldDescriptionprivate final Optional
<NumberFormat> ScoreboardObjectiveUpdateS2CPacket.numberFormat
private final Optional
<NumberFormat> ScoreboardScoreUpdateS2CPacket.numberFormat
The field for thenumberFormat
record component.Modifier and TypeMethodDescriptionScoreboardObjectiveUpdateS2CPacket.getNumberFormat()
ScoreboardScoreUpdateS2CPacket.numberFormat()
Returns the value of thenumberFormat
record component. -
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 PacketCodec
<RegistryByteBuf, Optional<NumberFormat>> NumberFormatTypes.OPTIONAL_PACKET_CODEC
static final PacketCodec
<RegistryByteBuf, NumberFormat> NumberFormatTypes.PACKET_CODEC
static final com.mojang.serialization.MapCodec
<NumberFormat> NumberFormatTypes.REGISTRY_CODEC
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)