package com.shanebeestudios.skbee.api.event.bound;

import com.shanebeestudios.skbee.api.bound.Bound;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import org.jetbrains.annotations.NotNull;

/**
 * Base {@link Event} for all {@link Bound} events
 */
public abstract class BoundEvent extends Event {

    private final Bound bound;
    private static final HandlerList handlers = new HandlerList();

    public BoundEvent(Bound bound) {
        this.bound = bound;
    }

    /**
     * The bound that is affiliated with the event
     *
     * @return Bound that is affiliated
     */
    public Bound getBound() {
        return bound;
    }

    @Override
    public @NotNull HandlerList getHandlers() {
        return handlers;
    }

}
