Class GUIManager

Object
GUIManager

public class GUIManager extends Object
  • Constructor Details

    • GUIManager

      public GUIManager(JavaPlugin plugin)
      Constructs a new GUIManager and pass the plugin to register the events
      Parameters:
      plugin - Class that extends JavaPlugin
  • Method Details

    • registerGUI

      protected static void registerGUI(InventoryGUI gui)
      Registers a new gui into the GUIManager
      Parameters:
      gui - InventoryGUI that has to be registered
    • getGUI

      public static InventoryGUI getGUI(String id)
      Gets an InventoryGUI with his ID
      Parameters:
      id - ID of the InventoryGUI
      Returns:
      The InventoryGUI
    • getGUI

      public static InventoryGUI getGUI(Inventory inv)
      Gets an InventoryGUI with his Inventory
      Parameters:
      inv - Inventory of the InventoryGUI
      Returns:
      The InventoryGUI
      See Also:
      Inventory
    • isGUI

      public static boolean isGUI(Inventory inv)
      Check if the inventory is an InventoryGUI
      Parameters:
      inv - Inventory of the possible InventoryGUI
      Returns:
      True if the inventory is an InventoryGUI
      See Also:
      Inventory