Package net.staticstudios.menus.menu
Class SimpleMenu
java.lang.Object
net.staticstudios.menus.menu.SimpleMenu
- All Implemented Interfaces:
Menu,org.bukkit.inventory.InventoryHolder
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.staticstudios.menus.menu.Menu
Menu.Action -
Constructor Summary
ConstructorsConstructorDescriptionSimpleMenu(String id, MenuViewer viewer, net.kyori.adventure.text.Component inventoryTitle, int size, @NotNull Map<Menu.Action, List<MenuAction>> actions, @NotNull List<Button> buttons, @NotNull MenuOptions options) -
Method Summary
Modifier and TypeMethodDescription@NotNull ButtongetButton(int slot) Get the button at the given slotgetId()Get the ID of the menu@NotNull org.bukkit.inventory.InventoryGet the options of the menu@NotNull MenuViewerGet the viewer of the menuvoidopen(boolean clearHistory, boolean pushToHistory) Open the menuvoidrunActions(@NotNull Menu.Action action, @NotNull MenuViewer viewer) Run the actions associated with the given action (type)voidSet the button at the given slotMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.staticstudios.menus.menu.Menu
close, open, updateButton
-
Constructor Details
-
Method Details
-
getButton
Description copied from interface:MenuGet the button at the given slot -
open
public void open(boolean clearHistory, boolean pushToHistory) Description copied from interface:MenuOpen the menu -
getViewer
Description copied from interface:MenuGet the viewer of the menu -
getId
Description copied from interface:MenuGet the ID of the menu -
getOptions
Description copied from interface:MenuGet the options of the menu- Specified by:
getOptionsin interfaceMenu- Returns:
- the options of the menu
-
getInventory
@NotNull public @NotNull org.bukkit.inventory.Inventory getInventory()- Specified by:
getInventoryin interfaceorg.bukkit.inventory.InventoryHolder