Package io.github.vicen621.guiapi
Class GUIManager
Object
GUIManager
-
Constructor Summary
ConstructorsConstructorDescriptionGUIManager(JavaPlugin plugin)Constructs a new GUIManager and pass the plugin to register the events -
Method Summary
Modifier and TypeMethodDescriptionstatic InventoryGUIGets an InventoryGUI with his IDstatic InventoryGUIgetGUI(Inventory inv)Gets an InventoryGUI with his Inventorystatic booleanisGUI(Inventory inv)Check if the inventory is an InventoryGUIprotected static voidregisterGUI(InventoryGUI gui)Registers a new gui into the GUIManager
-
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
Registers a new gui into the GUIManager- Parameters:
gui- InventoryGUI that has to be registered
-
getGUI
Gets an InventoryGUI with his ID- Parameters:
id- ID of the InventoryGUI- Returns:
- The InventoryGUI
-
getGUI
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
-