ServerboundConfigurationAcknowledgedPacket 0x10

ServerboundConfigurationAcknowledgedPacket: Minecraft 26.3 packet (0x10 Play serverbound).

Minecraft 26.3PlayServerboundnet.minecraft.network.protocol.game

Protocol slots (1)

IDdecStateDirectionRegistry
0x1016PLAYServerboundGamePacketTypes.SERVERBOUND_CONFIGURATION_ACKNOWLEDGED: "configuration_acknowledged"

Packet ids are positional: the id is the index of the addPacket call in the protocol builder (see ProtocolInfoBuilder.listPackets). Ids change between game versions.

Wire fields (0)

FieldType
No wire fields (marker packet).

Stream codec

static final StreamCodec<ByteBuf, ServerboundConfigurationAcknowledgedPacket> STREAM_CODEC = StreamCodec.unit(INSTANCE);

Modern packets serialize through StreamCodecs instead of read/write methods.

Handling

Resolved on the ServerGamePacketListener packet-listener interface by void handleConfigurationAcknowledged(ServerboundConfigurationAcknowledgedPacket serverboundconfigurationacknowledgedpacket). The implementation in the game is ServerGamePacketListenerImpl.

Full Source

ServerboundConfigurationAcknowledgedPacket.java29 lines · Minecraft 26.3 · verbatimSource page ↗
1
package net.minecraft.network.protocol.game;
2
3
import io.netty.buffer.ByteBuf;
4
import net.minecraft.network.codec.StreamCodec;
5
import net.minecraft.network.protocol.Packet;
6
import net.minecraft.network.protocol.PacketType;
7
8
public class ServerboundConfigurationAcknowledgedPacket implements Packet<ServerGamePacketListener> {
9
	public static final ServerboundConfigurationAcknowledgedPacket INSTANCE = new ServerboundConfigurationAcknowledgedPacket();
10
	public static final StreamCodec<ByteBuf, ServerboundConfigurationAcknowledgedPacket> STREAM_CODEC = StreamCodec.unit(INSTANCE);
11
12
	private ServerboundConfigurationAcknowledgedPacket() {
13
	}
14
15
	@Override
16
	public PacketType<ServerboundConfigurationAcknowledgedPacket> type() {
17
		return GamePacketTypes.SERVERBOUND_CONFIGURATION_ACKNOWLEDGED;
18
	}
19
20
	public void handle(final ServerGamePacketListener listener) {
21
		listener.handleConfigurationAcknowledged(this);
22
	}
23
24
	@Override
25
	public boolean isTerminal() {
26
		return true;
27
	}
28
}
29