// Generated by delombok at Tue Dec 16 19:35:15 UTC 2025
package net.md_5.bungee.protocol.packet;

import io.netty.buffer.ByteBuf;
import net.md_5.bungee.protocol.AbstractPacketHandler;
import net.md_5.bungee.protocol.DefinedPacket;

public class EntityStatus extends DefinedPacket {
    public static final byte DEBUG_INFO_REDUCED = 22;
    public static final byte DEBUG_INFO_NORMAL = 23;
    //
    private int entityId;
    private byte status;

    @Override
    public void read(ByteBuf buf) {
        entityId = buf.readInt();
        status = buf.readByte();
    }

    @Override
    public void write(ByteBuf buf) {
        buf.writeInt(entityId);
        buf.writeByte(status);
    }

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

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public int getEntityId() {
        return this.entityId;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public byte getStatus() {
        return this.status;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public void setEntityId(final int entityId) {
        this.entityId = entityId;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public void setStatus(final byte status) {
        this.status = status;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public java.lang.String toString() {
        return "EntityStatus(entityId=" + this.getEntityId() + ", status=" + this.getStatus() + ")";
    }

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

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public EntityStatus(final int entityId, final byte status) {
        this.entityId = entityId;
        this.status = status;
    }

    @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 EntityStatus)) return false;
        final EntityStatus other = (EntityStatus) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        if (this.getEntityId() != other.getEntityId()) return false;
        if (this.getStatus() != other.getStatus()) return false;
        return true;
    }

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

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