package com.spaceshipproject;

import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.InventoryHolder;

/** Holder generique pour les panneaux GUI du plugin (Spaceship + SpaceJump). */
public class SpaceshipGUIHolder implements InventoryHolder {

    private final SpaceshipGuiPanel panel;
    private Inventory inventory;

    public SpaceshipGUIHolder(SpaceshipGuiPanel panel) {
        this.panel = panel;
    }

    void setInventory(Inventory inventory) {
        this.inventory = inventory;
    }

    @Override
    public Inventory getInventory() {
        return inventory;
    }

    public SpaceshipGuiPanel getPanel() {
        return panel;
    }
}
