/* * Decompiled with CFR 0.152. */ package net.minecraft.network.protocol.game; import java.util.List; import java.util.UUID; import net.minecraft.core.UUIDUtil; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.network.codec.StreamCodec; import net.minecraft.network.protocol.Packet; import net.minecraft.network.protocol.PacketType; import net.minecraft.network.protocol.game.ClientGamePacketListener; import net.minecraft.network.protocol.game.GamePacketTypes; public record ClientboundPlayerInfoRemovePacket(List profileIds) implements Packet { public static final StreamCodec STREAM_CODEC = Packet.codec(ClientboundPlayerInfoRemovePacket::write, ClientboundPlayerInfoRemovePacket::new); private ClientboundPlayerInfoRemovePacket(FriendlyByteBuf input) { this(input.readList(UUIDUtil.STREAM_CODEC)); } private void write(FriendlyByteBuf output) { output.writeCollection(this.profileIds, UUIDUtil.STREAM_CODEC); } @Override public PacketType type() { return GamePacketTypes.CLIENTBOUND_PLAYER_INFO_REMOVE; } @Override public void handle(ClientGamePacketListener listener) { listener.handlePlayerInfoRemove(this); } }