Uses of Interface
net.minecraft.scoreboard.number.NumberFormat
Packages that use NumberFormat
Package
Description
-
Uses of NumberFormat in net.minecraft.network.packet.s2c.play
Fields in net.minecraft.network.packet.s2c.play with type parameters of type NumberFormatModifier and TypeFieldDescriptionprivate final Optional
<NumberFormat> ScoreboardObjectiveUpdateS2CPacket.numberFormat
private final Optional
<NumberFormat> ScoreboardScoreUpdateS2CPacket.numberFormat
The field for thenumberFormat
record component.Methods in net.minecraft.network.packet.s2c.play that return types with arguments of type NumberFormatModifier and TypeMethodDescriptionScoreboardObjectiveUpdateS2CPacket.getNumberFormat()
ScoreboardScoreUpdateS2CPacket.numberFormat()
Returns the value of thenumberFormat
record component. -
Uses of NumberFormat in net.minecraft.scoreboard
Fields in net.minecraft.scoreboard declared as NumberFormatModifier and TypeFieldDescriptionprivate @Nullable NumberFormat
ScoreboardObjective.numberFormat
private @Nullable NumberFormat
ScoreboardScore.numberFormat
private final @Nullable NumberFormat
ScoreboardEntry.numberFormatOverride
The field for thenumberFormatOverride
record component.Methods in net.minecraft.scoreboard that return NumberFormatModifier and TypeMethodDescriptionReadableScoreboardScore.getNumberFormat()
ScoreboardObjective.getNumberFormat()
ScoreboardScore.getNumberFormat()
ScoreboardObjective.getNumberFormatOr
(NumberFormat format) ScoreboardEntry.numberFormatOverride()
Returns the value of thenumberFormatOverride
record component.Methods in net.minecraft.scoreboard with parameters of type NumberFormatModifier 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) Constructors in net.minecraft.scoreboard with parameters of type NumberFormatModifierConstructorDescriptionScoreboardEntry
(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
Classes in net.minecraft.scoreboard.number with type parameters of type NumberFormatClasses in net.minecraft.scoreboard.number that implement NumberFormatModifier and TypeClassDescriptionclass
class
class
Fields in net.minecraft.scoreboard.number with type parameters of type NumberFormatModifier 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
Methods in net.minecraft.scoreboard.number that return types with arguments of type NumberFormatModifier and TypeMethodDescriptionNumberFormatType
<? extends NumberFormat> NumberFormat.getType()
-
Uses of NumberFormat in net.minecraft.server.command
Methods in net.minecraft.server.command with parameters of type NumberFormatModifier 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)