Uses of Record Class
net.minecraft.text.Decoration
Packages that use Decoration
-
Uses of Decoration in net.minecraft.network.message
Fields in net.minecraft.network.message declared as DecorationModifier 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.Methods in net.minecraft.network.message that return DecorationModifier and TypeMethodDescriptionMessageType.chat()
Returns the value of thechat
record component.MessageType.narration()
Returns the value of thenarration
record component.Constructors in net.minecraft.network.message with parameters of type Decoration -
Uses of Decoration in net.minecraft.text
Fields in net.minecraft.text with type parameters of type DecorationModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Decoration>
Decoration.CODEC
Methods in net.minecraft.text that return DecorationModifier 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.