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
Modifier and TypeMethodDescriptionstatic <T extends NumberFormat>
voidNumberFormatTypes.writeToStream
(FriendlyByteBuf p_313171_, T p_312224_) Modifier and TypeMethodDescriptionstatic NumberFormat
NumberFormatTypes.readFromStream
(FriendlyByteBuf p_312075_) -
Uses of NumberFormat in net.minecraft.network.protocol.game
Modifier and TypeFieldDescriptionprivate final NumberFormat
ClientboundSetObjectivePacket.numberFormat
private final NumberFormat
ClientboundSetScorePacket.numberFormat
The field for thenumberFormat
record component.Modifier and TypeMethodDescriptionClientboundSetObjectivePacket.getNumberFormat()
ClientboundSetScorePacket.numberFormat()
Returns the value of thenumberFormat
record component.ModifierConstructorDescriptionClientboundSetScorePacket
(String owner, String objectiveName, int score, Component display, NumberFormat numberFormat) Creates an instance of aClientboundSetScorePacket
record class. -
Uses of NumberFormat in net.minecraft.server.commands
Modifier and TypeMethodDescriptionint
ScoreboardCommand.NumberFormatCommandExecutor.run
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_312240_, NumberFormat p_312482_) private static int
ScoreboardCommand.setObjectiveFormat
(CommandSourceStack p_312449_, Objective p_313010_, NumberFormat p_310903_) private static int
ScoreboardCommand.setScoreNumberFormat
(CommandSourceStack p_310386_, Collection<ScoreHolder> p_310803_, Objective p_311141_, NumberFormat p_311948_) -
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_309891_) 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_311367_, NumberFormat p_311959_) PlayerScoreEntry.formatValue
(NumberFormat p_312365_) default MutableComponent
ReadOnlyScoreInfo.formatValue
(NumberFormat p_313073_) void
Score.numberFormat
(NumberFormat p_310093_) Objective.numberFormatOrDefault
(NumberFormat p_309891_) void
ScoreAccess.numberFormatOverride
(NumberFormat p_310218_) static MutableComponent
ReadOnlyScoreInfo.safeFormatValue
(ReadOnlyScoreInfo p_312063_, NumberFormat p_312422_) void
Objective.setNumberFormat
(NumberFormat p_311380_) ModifierConstructorDescriptionObjective
(Scoreboard p_83308_, String p_83309_, ObjectiveCriteria p_83310_, Component p_83311_, ObjectiveCriteria.RenderType p_83312_, boolean p_311052_, NumberFormat p_309864_) PlayerScoreEntry
(String owner, int value, Component display, NumberFormat numberFormatOverride) Creates an instance of aPlayerScoreEntry
record class.