/FileExtraction/Java_unseen/ItsSchatten_PortableCraftingInvs/API/src/main/java/com/itsschatten/portablecrafting/events/EnderchestOpenEvent.java
package com.itsschatten.portablecrafting.events;

import lombok.Getter;
import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import org.jetbrains.annotations.NotNull;

@Getter
public class EnderchestOpenEvent extends Event implements Cancellable {

    private static final HandlerList handlers = new HandlerList();
    private final Player player;
    private boolean cancelled;

    public EnderchestOpenEvent(Player player) {
        this.player = player;
        this.cancelled = false;
    }


    public static HandlerList getHandlerList() {
        return handlers;
    }

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

    @Override
    public boolean isCancelled() {
        return cancelled;
    }

    @Override
    public void setCancelled(boolean b) {
        this.cancelled = b;
    }
}
