ClientboundPlayerInfoRemovePacket .java

net.minecraft.network.protocol.game.ClientboundPlayerInfoRemovePacket (record): members: profileIds, handle, STREAM_CODEC, type. imports: UUIDUtil.

net.minecraft.network.protocol.gamerecord26 linescommon975 B

Implements

API Surface (2)

PacketType<ClientboundPlayerInfoRemovePacket> type()
void handle(final ClientGamePacketListener listener)

Fields & Constants (1)

STREAM_CODEC

Same Package (197)

Code Graph: Dependencies (6)

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

Full Source

ClientboundPlayerInfoRemovePacket.java26 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.network.protocol.game;
2
3
import io.netty.buffer.ByteBuf;
4
import java.util.List;
5
import java.util.UUID;
6
import net.minecraft.core.UUIDUtil;
7
import net.minecraft.network.codec.ByteBufCodecs;
8
import net.minecraft.network.codec.StreamCodec;
9
import net.minecraft.network.protocol.Packet;
10
import net.minecraft.network.protocol.PacketType;
11
12
public record ClientboundPlayerInfoRemovePacket(List<UUID> profileIds) implements Packet<ClientGamePacketListener> {
13
	public static final StreamCodec<ByteBuf, ClientboundPlayerInfoRemovePacket> STREAM_CODEC = StreamCodec.composite(
14
		UUIDUtil.STREAM_CODEC.apply(ByteBufCodecs.list()), ClientboundPlayerInfoRemovePacket::profileIds, ClientboundPlayerInfoRemovePacket::new
15
	);
16
17
	@Override
18
	public PacketType<ClientboundPlayerInfoRemovePacket> type() {
19
		return GamePacketTypes.CLIENTBOUND_PLAYER_INFO_REMOVE;
20
	}
21
22
	public void handle(final ClientGamePacketListener listener) {
23
		listener.handlePlayerInfoRemove(this);
24
	}
25
}
26

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