// 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;
import net.md_5.bungee.protocol.ProtocolConstants;

public class TitleTimes extends DefinedPacket {
    private int fadeIn;
    private int stay;
    private int fadeOut;

    @Override
    public void read(ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) {
        fadeIn = buf.readInt();
        stay = buf.readInt();
        fadeOut = buf.readInt();
    }

    @Override
    public void write(ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) {
        buf.writeInt(fadeIn);
        buf.writeInt(stay);
        buf.writeInt(fadeOut);
    }

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

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

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

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

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

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

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public java.lang.String toString() {
        return "TitleTimes(fadeIn=" + this.getFadeIn() + ", stay=" + this.getStay() + ", fadeOut=" + this.getFadeOut() + ")";
    }

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

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

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

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