ServerboundClientTickEndPacket 0x0D

ServerboundClientTickEndPacket: Minecraft 26.3 packet (0x0D Play serverbound). Wire name 'client_tick_end', handled

Minecraft 26.3PlayServerboundnet.minecraft.network.protocol.game

Protocol slots (1)

IDdecStateDirectionRegistry
0x0D13PLAYServerboundGamePacketTypes.SERVERBOUND_CLIENT_TICK_END: "client_tick_end"

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).

Fields are the components of the packet record.

Stream codec

static final StreamCodec<ByteBuf, ServerboundClientTickEndPacket> 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 handleClientTickEnd(ServerboundClientTickEndPacket serverboundclienttickendpacket). The implementation in the game is ServerGamePacketListenerImpl.

Full Source

ServerboundClientTickEndPacket.java21 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 record ServerboundClientTickEndPacket() implements Packet<ServerGamePacketListener> {
9
	public static final ServerboundClientTickEndPacket INSTANCE = new ServerboundClientTickEndPacket();
10
	public static final StreamCodec<ByteBuf, ServerboundClientTickEndPacket> STREAM_CODEC = StreamCodec.unit(INSTANCE);
11
12
	@Override
13
	public PacketType<ServerboundClientTickEndPacket> type() {
14
		return GamePacketTypes.SERVERBOUND_CLIENT_TICK_END;
15
	}
16
17
	public void handle(final ServerGamePacketListener listener) {
18
		listener.handleClientTickEnd(this);
19
	}
20
}
21