Uses of Interface
net.minecraft.network.chat.numbers.NumberFormat
Package
Description
-
Uses of NumberFormat in net.minecraft.network.chat.numbers
Modifier 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
-
Uses of NumberFormat in net.minecraft.network.protocol.game
Modifier and TypeFieldDescriptionprivate final Optional
<NumberFormat> ClientboundSetObjectivePacket.numberFormat
private final Optional
<NumberFormat> ClientboundSetScorePacket.numberFormat
The field for thenumberFormat
record component.Modifier and TypeMethodDescriptionClientboundSetObjectivePacket.getNumberFormat()
ClientboundSetScorePacket.numberFormat()
Returns the value of thenumberFormat
record component. -
Uses of NumberFormat in net.minecraft.server.commands
Modifier and TypeMethodDescriptionint
ScoreboardCommand.NumberFormatCommandExecutor.run
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_313745_, NumberFormat p_313763_) private static int
ScoreboardCommand.setObjectiveFormat
(CommandSourceStack p_313788_, Objective p_313769_, NumberFormat p_313731_) private static int
ScoreboardCommand.setScoreNumberFormat
(CommandSourceStack p_313794_, Collection<ScoreHolder> p_313780_, Objective p_313752_, NumberFormat p_313869_) -
Uses of NumberFormat in net.minecraft.world.scores
Modifier and TypeFieldDescriptionprivate NumberFormat
Objective.numberFormat
private NumberFormat
Score.numberFormat
private final NumberFormat
PlayerScoreEntry.numberFormatOverride
The field for thenumberFormatOverride
record component.Modifier and TypeMethodDescriptionObjective.numberFormat()
ReadOnlyScoreInfo.numberFormat()
Score.numberFormat()
Objective.numberFormatOrDefault
(NumberFormat p_313850_) PlayerScoreEntry.numberFormatOverride()
Returns the value of thenumberFormatOverride
record component.Modifier and TypeMethodDescriptionScoreboard.addObjective
(String p_83437_, ObjectiveCriteria p_83438_, Component p_83439_, ObjectiveCriteria.RenderType p_83440_, boolean p_313815_, NumberFormat p_313909_) PlayerScoreEntry.formatValue
(NumberFormat p_313792_) default MutableComponent
ReadOnlyScoreInfo.formatValue
(NumberFormat p_313924_) void
Score.numberFormat
(NumberFormat p_313931_) Objective.numberFormatOrDefault
(NumberFormat p_313850_) void
ScoreAccess.numberFormatOverride
(NumberFormat p_313696_) static MutableComponent
ReadOnlyScoreInfo.safeFormatValue
(ReadOnlyScoreInfo p_313916_, NumberFormat p_313801_) void
Objective.setNumberFormat
(NumberFormat p_313942_) ModifierConstructorDescriptionObjective
(Scoreboard p_83308_, String p_83309_, ObjectiveCriteria p_83310_, Component p_83311_, ObjectiveCriteria.RenderType p_83312_, boolean p_313856_, NumberFormat p_313758_) PlayerScoreEntry
(String owner, int value, Component display, NumberFormat numberFormatOverride) Creates an instance of aPlayerScoreEntry
record class.