Class MenuEvents

java.lang.Object
me.efekos.simpler.menu.MenuEvents
All Implemented Interfaces:
org.bukkit.event.Listener

public class MenuEvents extends Object implements org.bukkit.event.Listener
Should be registered as one of your plugin's listeners so Menus 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

    Constructors
    Constructor
    Description
    Creates a new menu events instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.