Uses of Interface
net.minecraft.network.chat.numbers.NumberFormat
Packages that use NumberFormat
Package
Description
-
Uses of NumberFormat in net.minecraft.network.chat.numbers
Classes in net.minecraft.network.chat.numbers with type parameters of type NumberFormatClasses in net.minecraft.network.chat.numbers that implement NumberFormatFields in net.minecraft.network.chat.numbers with type parameters of type NumberFormatModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<NumberFormat> NumberFormatTypes.CODEC
static final com.mojang.serialization.MapCodec
<NumberFormat> NumberFormatTypes.MAP_CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, Optional<NumberFormat>> NumberFormatTypes.OPTIONAL_STREAM_CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, NumberFormat> NumberFormatTypes.STREAM_CODEC
Methods in net.minecraft.network.chat.numbers that return types with arguments of type NumberFormat -
Uses of NumberFormat in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game with type parameters of type NumberFormatModifier and TypeFieldDescriptionprivate final Optional
<NumberFormat> ClientboundSetObjectivePacket.numberFormat
private final Optional
<NumberFormat> ClientboundSetScorePacket.numberFormat
The field for thenumberFormat
record component.Methods in net.minecraft.network.protocol.game that return types with arguments of type NumberFormatModifier and TypeMethodDescriptionClientboundSetObjectivePacket.getNumberFormat()
ClientboundSetScorePacket.numberFormat()
Returns the value of thenumberFormat
record component. -
Uses of NumberFormat in net.minecraft.server.commands
Methods in net.minecraft.server.commands with parameters of type NumberFormatModifier and TypeMethodDescriptionint
ScoreboardCommand.NumberFormatCommandExecutor.run
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, NumberFormat format) private static int
ScoreboardCommand.setObjectiveFormat
(CommandSourceStack source, Objective objective, NumberFormat format) private static int
ScoreboardCommand.setScoreNumberFormat
(CommandSourceStack source, Collection<ScoreHolder> targets, Objective objective, NumberFormat numberFormat) -
Uses of NumberFormat in net.minecraft.world.scores
Fields in net.minecraft.world.scores declared as NumberFormatModifier and TypeFieldDescriptionprivate NumberFormat
Objective.numberFormat
private NumberFormat
Score.numberFormat
private final NumberFormat
PlayerScoreEntry.numberFormatOverride
The field for thenumberFormatOverride
record component.Methods in net.minecraft.world.scores that return NumberFormatModifier and TypeMethodDescriptionObjective.numberFormat()
ReadOnlyScoreInfo.numberFormat()
Score.numberFormat()
Objective.numberFormatOrDefault
(NumberFormat defaultValue) PlayerScoreEntry.numberFormatOverride()
Returns the value of thenumberFormatOverride
record component.Methods in net.minecraft.world.scores with parameters of type NumberFormatModifier and TypeMethodDescriptionScoreboard.addObjective
(String name, ObjectiveCriteria criteria, Component displayName, ObjectiveCriteria.RenderType renderType, boolean displayAutoUpdate, NumberFormat numberFormat) PlayerScoreEntry.formatValue
(NumberFormat format) default MutableComponent
ReadOnlyScoreInfo.formatValue
(NumberFormat format) void
Score.numberFormat
(NumberFormat numberFormat) Objective.numberFormatOrDefault
(NumberFormat defaultValue) void
ScoreAccess.numberFormatOverride
(NumberFormat format) static MutableComponent
ReadOnlyScoreInfo.safeFormatValue
(ReadOnlyScoreInfo scoreInfo, NumberFormat format) void
Objective.setNumberFormat
(NumberFormat numberFormat) Constructors in net.minecraft.world.scores with parameters of type NumberFormatModifierConstructorDescriptionObjective
(Scoreboard scoreboard, String name, ObjectiveCriteria criteria, Component displayName, ObjectiveCriteria.RenderType renderType, boolean displayAutoUpdate, NumberFormat numberFormat) PlayerScoreEntry
(String owner, int value, Component display, NumberFormat numberFormatOverride) Creates an instance of aPlayerScoreEntry
record class.