2020-02-02 12:22:46 -05:00
|
|
|
CLASS net/minecraft/class_2797 net/minecraft/network/packet/c2s/play/ChatMessageC2SPacket
|
2021-11-24 15:16:37 -05:00
|
|
|
COMMENT A packet used to send a chat message to the server.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>This truncates the message to at most {@value #MAX_LENGTH} characters
|
|
|
|
COMMENT before sending to the server on the client. If the server receives the
|
|
|
|
COMMENT message longer than {@value #MAX_LENGTH} characters, it will reject
|
|
|
|
COMMENT the message and disconnect the client.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>If the message contains an invalid character (see {@link
|
|
|
|
COMMENT net.minecraft.SharedConstants#isValidChar isValidChar}), the server will
|
|
|
|
COMMENT reject the message and disconnect the client.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see net.minecraft.client.network.ClientPlayerEntity#sendChatMessage
|
|
|
|
COMMENT @see net.minecraft.server.network.ServerPlayNetworkHandler#onChatMessage
|
2019-06-28 17:55:20 -04:00
|
|
|
FIELD field_12764 chatMessage Ljava/lang/String;
|
2021-04-04 08:09:01 -04:00
|
|
|
FIELD field_33359 MAX_LENGTH I
|
2022-04-27 13:09:08 -04:00
|
|
|
METHOD <init> (Ljava/time/Instant;Ljava/lang/String;Lnet/minecraft/class_3515$class_7425;)V
|
|
|
|
ARG 2 chatMessage
|
2021-02-28 15:44:19 -05:00
|
|
|
METHOD <init> (Lnet/minecraft/class_2540;)V
|
|
|
|
ARG 1 buf
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_12114 getChatMessage ()Ljava/lang/String;
|