// Generated by delombok at Tue Dec 16 19:35:27 UTC 2025
package net.md_5.bungee.api.event;

import net.md_5.bungee.api.connection.ProxiedPlayer;
import net.md_5.bungee.api.plugin.Event;

/**
 * Called after a {@link ProxiedPlayer} changed one or more of the following
 * (client-side) settings:
 *
 * <ul>
 * <li>View distance</li>
 * <li>Locale</li>
 * <li>Displayed skin parts</li>
 * <li>Chat visibility</li>
 * <li>Chat colors</li>
 * <li>Main hand side (left or right)</li>
 * </ul>
 */
public class SettingsChangedEvent extends Event {
    /**
     * Player who changed the settings.
     */
    private final ProxiedPlayer player;

    /**
     * Creates a new {@code SettingsChangedEvent} instance.
     *
     * @param player Player who changed the settings.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public SettingsChangedEvent(final ProxiedPlayer player) {
        this.player = player;
    }

    /**
     * Player who changed the settings.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public ProxiedPlayer getPlayer() {
        return this.player;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public java.lang.String toString() {
        return "SettingsChangedEvent(player=" + this.getPlayer() + ")";
    }

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

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final java.lang.Object $player = this.getPlayer();
        result = result * PRIME + ($player == null ? 43 : $player.hashCode());
        return result;
    }
}
