Package me.efekos.simpler.menu
Class MenuEvents
java.lang.Object
me.efekos.simpler.menu.MenuEvents
- All Implemented Interfaces:
org.bukkit.event.Listener
Should be registered as one of your plugin's listeners so
Menu
s will work. You don't have to register them yourself. Setting up the MenuManager by MenuManager.setPlugin(JavaPlugin)
also registers this listener to your plugin.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onMenuClick
(org.bukkit.event.inventory.InventoryClickEvent e) Handles menu clicks.void
onMenuClose
(org.bukkit.event.inventory.InventoryCloseEvent e) Handles menu closing.void
onMenuOpen
(org.bukkit.event.inventory.InventoryOpenEvent e) Handles menu opening.
-
Constructor Details
-
MenuEvents
public MenuEvents()Creates a new menu events instance.
-
-
Method Details
-
onMenuClick
public void onMenuClick(org.bukkit.event.inventory.InventoryClickEvent e) Handles menu clicks.- Parameters:
e
- Event.
-
onMenuOpen
public void onMenuOpen(org.bukkit.event.inventory.InventoryOpenEvent e) Handles menu opening.- Parameters:
e
- Event.
-
onMenuClose
public void onMenuClose(org.bukkit.event.inventory.InventoryCloseEvent e) Handles menu closing.- Parameters:
e
- Event.
-