Uses of Enum Class
net.minecraft.util.Formatting
Package
Description
-
Uses of Formatting in net.minecraft.advancement
ModifierConstructorDescriptionprivate
AdvancementFrame
(String id, int texV, Formatting titleFormat) -
Uses of Formatting in net.minecraft.client
Modifier and TypeMethodDescriptionprivate void
Keyboard.addDebugMessage
(Formatting formatting, Text text) -
Uses of Formatting in net.minecraft.client.gui.screen
Modifier and TypeMethodDescriptionprivate void
CommandSuggestor.showUsages
(Formatting formatting) -
Uses of Formatting in net.minecraft.command.argument
Modifier and TypeMethodDescriptionstatic Formatting
ColorArgumentType.getColor
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) ColorArgumentType.parse
(com.mojang.brigadier.StringReader stringReader) -
Uses of Formatting in net.minecraft.entity.boss
-
Uses of Formatting in net.minecraft.entity.effect
-
Uses of Formatting in net.minecraft.nbt.visitor
Modifier and TypeFieldDescriptionprivate static final Formatting
NbtTextFormatter.NAME_COLOR
private static final Formatting
NbtTextFormatter.NUMBER_COLOR
private static final Formatting
NbtTextFormatter.STRING_COLOR
private static final Formatting
NbtTextFormatter.TYPE_SUFFIX_COLOR
-
Uses of Formatting in net.minecraft.network.packet.s2c.play
-
Uses of Formatting in net.minecraft.scoreboard
-
Uses of Formatting in net.minecraft.server.command
Modifier and TypeMethodDescriptionprivate static int
TeamCommand.executeModifyColor
(ServerCommandSource source, Team team, Formatting color) private static void
TestCommand.sendMessage
(ServerWorld world, String message, Formatting formatting) -
Uses of Formatting in net.minecraft.test
Modifier and TypeMethodDescriptionprotected static void
StructureTestListener.sendMessageToAllPlayers
(ServerWorld world, Formatting formatting, String message) -
Uses of Formatting in net.minecraft.text
Modifier and TypeFieldDescriptionprivate static final Map<Formatting,
TextColor> TextColor.FORMATTING_TO_COLOR
Modifier and TypeMethodDescriptionMutableText.formatted
(Formatting formatting) Add a formatting to this text's style.MutableText.formatted
(Formatting[] formattings) Adds some formattings to this text's style.TextColor.fromFormatting
(Formatting formatting) Obtains a text color from a formatting.Style.withColor
(@Nullable Formatting color) Returns a new style with the color provided and all other attributes of this style.Style.withExclusiveFormatting
(Formatting formatting) Returns a new style with the formatting provided and some applicable attributes of this style.Style.withFormatting
(Formatting formatting) Returns a new style with the formatting provided and all other attributes of this style.Style.withFormatting
(Formatting[] formattings) Returns a new style with the formattings provided and all other attributes of this style. -
Uses of Formatting in net.minecraft.util
Modifier and TypeFieldDescriptionprivate static final Map<String,
Formatting> Formatting.BY_NAME
static final StringIdentifiable.Codec<Formatting>
Formatting.CODEC
Modifier and TypeMethodDescriptionstatic @Nullable Formatting
Formatting.byCode
(char code) Returns the formatting with the codecode
, ornull
if there is none.static @Nullable Formatting
Formatting.byColorIndex
(int colorIndex) Returns the formatting with the color indexcolorIndex
, ornull
if there is none.static @Nullable Formatting
Returns the formatting with the namename
, ornull
if there is none.static Formatting
Returns the enum constant of this class with the specified name.static Formatting[]
Formatting.values()
Returns an array containing the constants of this enum class, in the order they are declared.