Package dev.plex.menu

Class AbstractMenu

java.lang.Object
dev.plex.menu.AbstractMenu
Direct Known Subclasses:
PageableMenu.Page, ToggleMenu

public abstract class AbstractMenu extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Map<net.kyori.adventure.text.Component,AbstractMenu>
     
    private final org.bukkit.inventory.Inventory
     
    private final net.kyori.adventure.text.Component
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    AbstractMenu(net.kyori.adventure.text.Component name, AbstractMenu.Rows rows)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract boolean
    onClick(org.bukkit.inventory.InventoryView view, org.bukkit.inventory.Inventory inventory, org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack clicked)
     
    void
    open(org.bukkit.entity.Player player)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • INVENTORIES

      public static final Map<net.kyori.adventure.text.Component,AbstractMenu> INVENTORIES
    • name

      private final net.kyori.adventure.text.Component name
    • inventory

      private final org.bukkit.inventory.Inventory inventory
  • Constructor Details

  • Method Details

    • onClick

      public abstract boolean onClick(org.bukkit.inventory.InventoryView view, org.bukkit.inventory.Inventory inventory, org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack clicked)
    • open

      public void open(org.bukkit.entity.Player player)