mirror of https://github.com/FabricMC/yarn.git
29 lines
1.7 KiB
Plaintext
29 lines
1.7 KiB
Plaintext
CLASS net/minecraft/class_7438 net/minecraft/network/packet/s2c/play/ChatMessageS2CPacket
|
|
COMMENT A packet used to send a chat message to the clients.
|
|
COMMENT
|
|
COMMENT <p>The content is not wrapped in any way (e.g. by {@code chat.type.text} text); the
|
|
COMMENT raw message content is sent to the clients, and they will wrap it. To register
|
|
COMMENT custom wrapping behaviors, check {@link MessageType#register}.
|
|
COMMENT
|
|
COMMENT <p>Chat messages have signatures. It is possible to use a bogus signature - such as
|
|
COMMENT {@link net.minecraft.network.message.SignedMessage#ofUnsigned} - to send a chat
|
|
COMMENT message; however if the signature is invalid (e.g. because the text's content differs
|
|
COMMENT from the one sent by the client, or because the passed signature is invalid) the client
|
|
COMMENT will show a warning and can discard it depending on the options.
|
|
COMMENT
|
|
COMMENT <p>If the message takes more than {@link
|
|
COMMENT net.minecraft.network.message.SignedMessage#CLIENTBOUND_TIME_TO_LIVE}
|
|
COMMENT to reach the clients (including the time it originally took to reach the server),
|
|
COMMENT the message is not considered secure anymore by the clients, and may be discarded
|
|
COMMENT depending on the clients' options.
|
|
COMMENT
|
|
COMMENT @see net.minecraft.server.network.ServerPlayerEntity#sendChatMessage
|
|
COMMENT @see net.minecraft.client.network.ClientPlayNetworkHandler#onChatMessage
|
|
FIELD comp_943 serializedParameters Lnet/minecraft/class_2556$class_7602;
|
|
FIELD field_47949 CODEC Lnet/minecraft/class_9139;
|
|
METHOD <init> (Lnet/minecraft/class_9129;)V
|
|
ARG 1 buf
|
|
METHOD comp_943 serializedParameters ()Lnet/minecraft/class_2556$class_7602;
|
|
METHOD method_55898 write (Lnet/minecraft/class_9129;)V
|
|
ARG 1 buf
|