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

public class Location {
    private final String dimension;
    private final long pos;

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Location(final String dimension, final long pos) {
        this.dimension = dimension;
        this.pos = pos;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getDimension() {
        return this.dimension;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public long getPos() {
        return this.pos;
    }

    @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 Location)) return false;
        final Location other = (Location) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        if (this.getPos() != other.getPos()) return false;
        final java.lang.Object this$dimension = this.getDimension();
        final java.lang.Object other$dimension = other.getDimension();
        if (this$dimension == null ? other$dimension != null : !this$dimension.equals(other$dimension)) return false;
        return true;
    }

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final long $pos = this.getPos();
        result = result * PRIME + (int) ($pos >>> 32 ^ $pos);
        final java.lang.Object $dimension = this.getDimension();
        result = result * PRIME + ($dimension == null ? 43 : $dimension.hashCode());
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public java.lang.String toString() {
        return "Location(dimension=" + this.getDimension() + ", pos=" + this.getPos() + ")";
    }
}
