ServerboundChatSessionUpdatePacket .java

net.minecraft.network.protocol.game.ServerboundChatSessionUpdatePacket (record): members: chatSession, handle, STREAM_CODEC, type. imports: ByteBuf.

net.minecraft.network.protocol.gamerecord22 linescommon882 B

Implements

API Surface (2)

PacketType<ServerboundChatSessionUpdatePacket> type()
void handle(final ServerGamePacketListener listener)

Fields & Constants (1)

STREAM_CODEC

Same Package (197)

Code Graph: Dependencies (5)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

ServerboundChatSessionUpdatePacket.java22 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.network.protocol.game;
2
3
import io.netty.buffer.ByteBuf;
4
import net.minecraft.network.chat.RemoteChatSession;
5
import net.minecraft.network.codec.StreamCodec;
6
import net.minecraft.network.protocol.Packet;
7
import net.minecraft.network.protocol.PacketType;
8
9
public record ServerboundChatSessionUpdatePacket(RemoteChatSession.Data chatSession) implements Packet<ServerGamePacketListener> {
10
	public static final StreamCodec<ByteBuf, ServerboundChatSessionUpdatePacket> STREAM_CODEC = RemoteChatSession.Data.STREAM_CODEC
11
		.map(ServerboundChatSessionUpdatePacket::new, ServerboundChatSessionUpdatePacket::chatSession);
12
13
	@Override
14
	public PacketType<ServerboundChatSessionUpdatePacket> type() {
15
		return GamePacketTypes.SERVERBOUND_CHAT_SESSION_UPDATE;
16
	}
17
18
	public void handle(final ServerGamePacketListener listener) {
19
		listener.handleChatSessionUpdate(this);
20
	}
21
}
22

Decompiled Minecraft 26.3 source of ServerboundChatSessionUpdatePacket (net/minecraft/network/protocol/game/ServerboundChatSessionUpdatePacket.java) with Mojang official mappings, stored verbatim on the site.