Interface EditMenu

All Known Implementing Classes:
BooleanEditMenu, IntegerEditMenu, MainConfigMenu, StringEditMenu

public interface EditMenu
Common interface for menus.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.inventory.Inventory
    createEditMenu(String configName, String path, int page)
    Creates an edit menu for this type.
    boolean
    onClick(org.bukkit.event.inventory.InventoryClickEvent e)
    Returns true if the action belonged to the menu.
  • Method Details

    • onClick

      boolean onClick(org.bukkit.event.inventory.InventoryClickEvent e)
      Returns true if the action belonged to the menu.
      Parameters:
      e - A click on an item, not sure if it belongs on this menu.
      Returns:
      true if no further processing is needed.
    • createEditMenu

      org.bukkit.inventory.Inventory createEditMenu(String configName, String path, int page)
      Creates an edit menu for this type.
      Parameters:
      configName - Configuration name (filename)
      path - Path to node
      page - The page to show (for multi-page editors)
      Returns:
      An editor or null if this is not the right edit-menu.