mirror of https://github.com/FabricMC/yarn.git
64 lines
4.0 KiB
Plaintext
64 lines
4.0 KiB
Plaintext
CLASS net/minecraft/class_2556 net/minecraft/network/message/MessageType
|
|
COMMENT A message type (also known as "chat type") controls whether to display or narrate
|
|
COMMENT the messages sent to the clients, and if so, how. Message types are registered
|
|
COMMENT at {@link net.minecraft.util.registry.BuiltinRegistries#MESSAGE_TYPE}. When
|
|
COMMENT sending a message, the registry key of the message type can be passed to indicate
|
|
COMMENT which message type should be used.
|
|
COMMENT
|
|
COMMENT <p>Message type has three fields, all of which are optional. If the field is empty,
|
|
COMMENT the message is not displayed or narrated there.
|
|
COMMENT <ul>
|
|
COMMENT <li>{@link #chat} controls the content displayed in the {@linkplain
|
|
COMMENT net.minecraft.client.gui.hud.ChatHud chat hud}.</li>
|
|
COMMENT <li>{@link #overlay} controls the content displayed as the overlay (above the hotbar).</li>
|
|
COMMENT <li>{@link #narration} controls the narrated content.</li>
|
|
COMMENT </ul>
|
|
COMMENT
|
|
COMMENT <p>The display rules and the narration rule can optionally have a "decoration", which is an
|
|
COMMENT instance of {@link Decoration}. Decorations are pre-defined message formatting and
|
|
COMMENT styling rules, which can be {@linkplain Decoration#apply applied} to the message to
|
|
COMMENT produce the displayed or narrated text. If there is no decoration, the message is used
|
|
COMMENT without any extra processing. See the documentation for {@link MessageType.DisplayRule}
|
|
COMMENT and {@link MessageType.NarrationRule} for details.
|
|
COMMENT
|
|
COMMENT @see net.minecraft.server.PlayerManager#broadcast(Text, RegistryKey)
|
|
FIELD comp_792 Lnet/minecraft/class_7463;
|
|
COMMENT the display rule for the content displayed in the chat hud, or
|
|
COMMENT {@link Optional#empty()} if it should not be displayed in the chat hud
|
|
FIELD comp_794 Lnet/minecraft/class_7463;
|
|
COMMENT the narration rule for the content, or {@link Optional#empty()}
|
|
COMMENT if it should not be narrated
|
|
FIELD field_11737 Lnet/minecraft/class_5321;
|
|
COMMENT The registry key for the message type used by {@link
|
|
COMMENT net.minecraft.network.packet.c2s.play.ChatMessageC2SPacket chat messages}.
|
|
COMMENT The message content is {@linkplain Decoration#ofChat decorated} using the
|
|
COMMENT {@code chat.type.text} text.
|
|
FIELD field_39227 CODEC Lcom/mojang/serialization/Codec;
|
|
FIELD field_39228 Lnet/minecraft/class_5321;
|
|
COMMENT The registry key for the say command message type, used by {@linkplain
|
|
COMMENT net.minecraft.server.command.SayCommand /say}. The message content is
|
|
COMMENT {@linkplain Decoration#ofChat decorated} using the {@code chat.type.announcement}
|
|
COMMENT text.
|
|
FIELD field_39229 Lnet/minecraft/class_5321;
|
|
COMMENT The registry key for the message command message type, used by {@linkplain
|
|
COMMENT net.minecraft.server.command.MessageCommand /msg}. The message content is
|
|
COMMENT {@linkplain Decoration#ofDirectMessage decorated} using the
|
|
COMMENT {@code commands.message.display.incoming} text, and the text is italicized and colored
|
|
COMMENT gray.
|
|
FIELD field_39230 Lnet/minecraft/class_5321;
|
|
COMMENT The registry key for the team message command message type, used by {@linkplain
|
|
COMMENT net.minecraft.server.command.TeamMsgCommand /teammsg}. The message content is
|
|
COMMENT {@linkplain Decoration#ofTeamMessage decorated} using the
|
|
COMMENT {@code chat.type.team.text} text.
|
|
FIELD field_39231 Lnet/minecraft/class_5321;
|
|
COMMENT The registry key for the emote command message type, used by {@linkplain
|
|
COMMENT net.minecraft.server.command.MeCommand /me}. The message content is
|
|
COMMENT {@linkplain Decoration#ofChat decorated} using the {@code chat.type.emote} text.
|
|
FIELD field_39677 CHAT_TEXT_DECORATION Lnet/minecraft/class_7463;
|
|
METHOD method_43843 (Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/kinds/App;
|
|
ARG 0 instance
|
|
METHOD method_43844 initialize (Lnet/minecraft/class_2378;)Lnet/minecraft/class_6880;
|
|
ARG 0 registry
|
|
METHOD method_43845 register (Ljava/lang/String;)Lnet/minecraft/class_5321;
|
|
ARG 0 id
|