Newer
Older
ChallengeSystem / src / main / java / net / brennholz / gui / InventoryHandler.java
@fantahund fantahund on 10 May 2020 845 bytes Versuch für neue GUI
package net.brennholz.gui;

import me.wolfyscript.utilities.api.WolfyUtilities;
import me.wolfyscript.utilities.api.inventory.GuiCluster;
import me.wolfyscript.utilities.api.inventory.InventoryAPI;
import net.brennholz.challenges.Challenges;

public class InventoryHandler {

    private Challenges challenges;
    private WolfyUtilities wolfyUtilities;
    private InventoryAPI inventoryAPI;

    public InventoryHandler(Challenges challenges){
        this.challenges = challenges;
        this.wolfyUtilities = WolfyUtilities.getAPI(challenges);
        this.inventoryAPI = wolfyUtilities.getInventoryAPI();
    }

    public void init(){
        GuiCluster mainCluster = inventoryAPI.getOrRegisterGuiCluster("none");
        mainCluster.registerGuiWindow(new SettingsGui(inventoryAPI));
        mainCluster.setMainmenu("settings");

    }
}