Uses of Record Class
net.minecraft.text.Decoration
-
Uses of Decoration in net.minecraft.network.message
Modifier and TypeFieldDescriptionprivate final Decoration
MessageType.chat
The field for thechat
record component.static final Decoration
MessageType.CHAT_TEXT_DECORATION
private final Decoration
MessageType.narration
The field for thenarration
record component. -
Uses of Decoration in net.minecraft.text
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Decoration> Decoration.CODEC
static final PacketCodec
<RegistryByteBuf, Decoration> Decoration.PACKET_CODEC
Modifier and TypeMethodDescriptionstatic Decoration
Returns the decoration used in chat messages.static Decoration
Decoration.ofIncomingMessage
(String translationKey) Returns the decoration used in incoming messages sent withMessageCommand
.static Decoration
Decoration.ofOutgoingMessage
(String translationKey) Returns the decoration used in outgoing messages sent withMessageCommand
.static Decoration
Decoration.ofTeamMessage
(String translationKey) Returns the decoration used in chat messages.