java.lang.Object
me.fami6xx.rpuniverse.core.menuapi.types.Menu
All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder
Direct Known Subclasses:
AdminPropertyEditMenu, BuyPropertyMenu, CreateLockSelectTypeMenu, EditConsumableMenu, JobAdminMenu, JobBankActionsMenu, JobBossLocationMenu, JobBossMenu, JobPlayerMenu, JobPositionMenu, JobSettingsMenu, LanguageFieldEditorMenu, LocationActionMenu, LockMenu, PaginatedMenu, PlayerManagePropertyMenu, PropertyDetailsMenu, RentPropertyMenu, SellStepEditorMenu, WorkingStepEditorMenu, WorkingStepInteractableMenu

public abstract class Menu extends Object implements org.bukkit.inventory.InventoryHolder
  • Field Details

    • playerMenu

      protected PlayerMenu playerMenu
    • inventory

      protected org.bukkit.inventory.Inventory inventory
    • FILLER_GLASS

      protected org.bukkit.inventory.ItemStack FILLER_GLASS
  • Constructor Details

  • Method Details

    • getMenuName

      public abstract String getMenuName()
    • getSlots

      public abstract int getSlots()
    • handleMenu

      public abstract void handleMenu(org.bukkit.event.inventory.InventoryClickEvent e)
    • setMenuItems

      public abstract void setMenuItems()
    • getMenuTags

      public abstract List<MenuTag> getMenuTags()
    • open

      public void open()
      Opens the menu for the player.
    • getInventory

      public org.bukkit.inventory.Inventory getInventory()
      Returns the inventory associated with this menu.
      Specified by:
      getInventory in interface org.bukkit.inventory.InventoryHolder
      Returns:
      the inventory associated with this menu.
    • setFillerGlass

      public void setFillerGlass()
      Sets the filler glass item to the inventory.
    • makeColoredGlass

      public static org.bukkit.inventory.ItemStack makeColoredGlass(org.bukkit.DyeColor color)
      Makes a colored glass pane item.
      Parameters:
      color - the color of the glass pane.
      Returns:
      the colored glass pane item.