Uses of Enum Class
net.minecraft.util.Formatting
Package
Description
Contains utility method classes, various enums, serialization helpers, and
miscellaneous classes.
-
Uses of Formatting in net.minecraft.advancement
-
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 boolean
ChatInputSuggestor.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.attribute
Modifier and TypeMethodDescriptionEntityAttribute.Category.getFormatting
(boolean addition) EntityAttribute.getFormatting
(boolean addition) -
Uses of Formatting in net.minecraft.entity.boss
-
Uses of Formatting in net.minecraft.entity.effect
-
Uses of Formatting in net.minecraft.item
Modifier and TypeFieldDescriptionprivate static final Formatting
SmithingTemplateItem.DESCRIPTION_FORMATTING
private static final Formatting
SmithingTemplateItem.TITLE_FORMATTING
-
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
Modifier and TypeMethodDescriptionstatic @Nullable ScoreboardDisplaySlot
ScoreboardDisplaySlot.fromFormatting
(Formatting formatting) void
Team.setColor
(Formatting color) -
Uses of Formatting in net.minecraft.server.command
Modifier and TypeMethodDescriptionprivate static int
TeamCommand.executeModifyColor
(ServerCommandSource source, Team team, Formatting color) (package 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 com.mojang.serialization.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.Rarity.getFormatting()
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.