Uses of Record Class
net.minecraft.text.Decoration
-
Uses of Decoration in net.minecraft.network.message
Modifier and TypeFieldDescriptionprivate final Optional<Decoration>
MessageType.DisplayRule.decoration
The field for thedecoration
record component.private final Optional<Decoration>
MessageType.NarrationRule.decoration
The field for thedecoration
record component.Modifier and TypeMethodDescriptionMessageType.DisplayRule.decoration()
Returns the value of thedecoration
record component.MessageType.NarrationRule.decoration()
Returns the value of thedecoration
record component.Modifier and TypeMethodDescriptionstatic MessageType.DisplayRule
MessageType.DisplayRule.of
(Decoration decoration) Returns the display rule with the specified decoration.static MessageType.NarrationRule
MessageType.NarrationRule.of
(Decoration decoration, MessageType.NarrationRule.Kind kind) Returns the narration rule with the specified decoration and kind.ModifierConstructorDescriptionDisplayRule
(Optional<Decoration> optional) NarrationRule
(Optional<Decoration> optional, MessageType.NarrationRule.Kind kind) -
Uses of Decoration in net.minecraft.text
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Decoration>
Decoration.CODEC
Modifier and TypeMethodDescriptionstatic Decoration
Returns the decoration used in chat messages.static Decoration
Decoration.ofDirectMessage
(String translationKey) Returns the decoration used inMessageCommand
.static Decoration
Decoration.ofTeamMessage
(String translationKey) Returns the decoration used in chat messages.