// Generated by delombok at Sat Oct 04 04:46:56 UTC 2025
package net.md_5.bungee.protocol.packet;

import io.netty.buffer.ByteBuf;
import java.util.UUID;
import net.md_5.bungee.protocol.AbstractPacketHandler;
import net.md_5.bungee.protocol.DefinedPacket;
import net.md_5.bungee.protocol.ProtocolConstants;

public class PlayerListItemRemove extends DefinedPacket {
    private UUID[] uuids;

    @Override
    public void read(ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) {
        uuids = new UUID[DefinedPacket.readVarInt(buf)];
        for (int i = 0; i < uuids.length; i++) {
            uuids[i] = DefinedPacket.readUUID(buf);
        }
    }

    @Override
    public void write(ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) {
        DefinedPacket.writeVarInt(uuids.length, buf);
        for (UUID uuid : uuids) {
            DefinedPacket.writeUUID(uuid, buf);
        }
    }

    @Override
    public void handle(AbstractPacketHandler handler) throws Exception {
        handler.handle(this);
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public UUID[] getUuids() {
        return this.uuids;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public void setUuids(final UUID[] uuids) {
        this.uuids = uuids;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public java.lang.String toString() {
        return "PlayerListItemRemove(uuids=" + java.util.Arrays.deepToString(this.getUuids()) + ")";
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public PlayerListItemRemove() {
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public boolean equals(final java.lang.Object o) {
        if (o == this) return true;
        if (!(o instanceof PlayerListItemRemove)) return false;
        final PlayerListItemRemove other = (PlayerListItemRemove) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        if (!java.util.Arrays.deepEquals(this.getUuids(), other.getUuids())) return false;
        return true;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    protected boolean canEqual(final java.lang.Object other) {
        return other instanceof PlayerListItemRemove;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        result = result * PRIME + java.util.Arrays.deepHashCode(this.getUuids());
        return result;
    }
}
