Uses of Record Class
net.minecraft.network.MessageFormat
Packages that use MessageFormat
-
Uses of MessageFormat in net.minecraft.network
Fields in net.minecraft.network with type parameters of type MessageFormatModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<MessageFormat>MessageFormat.CODECThe codec for chat format.private final Optional<MessageFormat>MessageType.DisplayRule.decorationThe field for thedecorationrecord component.private final Optional<MessageFormat>MessageType.NarrationRule.decorationThe field for thedecorationrecord component.Methods in net.minecraft.network that return MessageFormatModifier and TypeMethodDescriptionstatic MessageFormatMessageFormat.italicGray(String translationKey) Returns a message format that applies the translation key with the sender's name and the message content, and applies a gray, italic style.static MessageFormatReturns a message format that applies the translation key with the sender's name and the message content.static MessageFormatReturns a message format that applies the translation key with the sender's team name, the sender's name, and the message content.Methods in net.minecraft.network that return types with arguments of type MessageFormatModifier and TypeMethodDescriptionMessageType.DisplayRule.decoration()Returns the value of thedecorationrecord component.MessageType.NarrationRule.decoration()Returns the value of thedecorationrecord component.Methods in net.minecraft.network with parameters of type MessageFormatModifier and TypeMethodDescriptionstatic MessageType.DisplayRuleMessageType.DisplayRule.of(MessageFormat format) Returns a rule to format the message.static MessageType.NarrationRuleMessageType.NarrationRule.of(MessageFormat decoration, MessageType.NarrationRule.Kind kind) Returns a rule that narrates a message after formatting.Constructor parameters in net.minecraft.network with type arguments of type MessageFormatModifierConstructorDescriptionDisplayRule(Optional<MessageFormat> optional) NarrationRule(Optional<MessageFormat> optional, MessageType.NarrationRule.Kind kind)