Package me.bimmr.bimmcore.gui.inventory
Class MenuManager
- java.lang.Object
-
- me.bimmr.bimmcore.gui.inventory.MenuManager
-
- All Implemented Interfaces:
org.bukkit.event.Listener
public class MenuManager extends java.lang.Object implements org.bukkit.event.Listener
The Manager forMenu
classes
-
-
Constructor Summary
Constructors Constructor Description MenuManager()
-
Method Summary
Modifier and Type Method Description static Menu
getMenuGUI(java.lang.String name)
static Menu
getMenuGUI(org.bukkit.inventory.Inventory inventory)
void
onInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event)
Event Handler for MenuGUIsvoid
onInventoryClose(org.bukkit.event.inventory.InventoryCloseEvent event)
static void
register(Menu menu)
Register the Menustatic void
unregister(Menu menu)
Unregister the Menu
-
-
-
Field Detail
-
menus
public static java.util.ArrayList<Menu> menus
-
-
Method Detail
-
unregister
public static void unregister(Menu menu)
Unregister the Menu- Parameters:
menu
- The Menu to unRegister
-
register
public static void register(Menu menu)
Register the Menu- Parameters:
menu
- the Menu to register
-
getMenuGUI
public static Menu getMenuGUI(java.lang.String name)
- Parameters:
name
- The MenuGUI's name- Returns:
- The MenuGUI
-
getMenuGUI
public static Menu getMenuGUI(org.bukkit.inventory.Inventory inventory)
- Parameters:
inventory
- The Inventory- Returns:
- The MenuGUI
-
onInventoryClose
public void onInventoryClose(org.bukkit.event.inventory.InventoryCloseEvent event)
-
onInventoryClick
public void onInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event)
Event Handler for MenuGUIs- Parameters:
event
- The InventoryClickEvent
-
-