// Generated by delombok at Tue Oct 21 21:24:10 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;
import net.md_5.bungee.protocol.ProtocolConstants;

public class ClearTitles extends DefinedPacket {
    private boolean reset;

    @Override
    public void read(ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) {
        reset = buf.readBoolean();
    }

    @Override
    public void write(ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) {
        buf.writeBoolean(reset);
    }

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

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public boolean isReset() {
        return this.reset;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public void setReset(final boolean reset) {
        this.reset = reset;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public java.lang.String toString() {
        return "ClearTitles(reset=" + this.isReset() + ")";
    }

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

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public ClearTitles(final boolean reset) {
        this.reset = reset;
    }

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

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

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