Package com.kamikazejam.kamicommon.menu
Class OneClickMenu
java.lang.Object
com.kamikazejam.kamicommon.menu.api.MenuHolder
com.kamikazejam.kamicommon.menu.AbstractMenu<OneClickMenu>
com.kamikazejam.kamicommon.menu.OneClickMenu
- All Implemented Interfaces:
UpdatingMenu
,Menu<OneClickMenu>
,InventoryHolder
This Menu class focuses on providing a simple menu that allows for only one single click per opening.
Subsequent clicks will not trigger click callbacks on icons, unless the menu is reopened.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.kamikazejam.kamicommon.menu.AbstractMenu
events, menuIcons, options, player
Fields inherited from class com.kamikazejam.kamicommon.menu.api.MenuHolder
inventory, size, title
-
Method Summary
Modifier and TypeMethodDescriptionboolean
countsForClick
(@Nullable MenuIcon<?> icon, int slot) @Nullable InventoryView
open()
Methods inherited from class com.kamikazejam.kamicommon.menu.AbstractMenu
close, getFillerIcon, getMenuIcons, getMenuIconsAccess, modifyIcons, open, placeFiller, placeIcons, reopenMenu, reopenMenu, resizeMenu, setSize, updateOneTick
Methods inherited from class com.kamikazejam.kamicommon.menu.api.MenuHolder
clear, closeAll, deleteInventory, equals, firstEmpty, firstEmpty, firstEmpty, getHolder, getInventory, getItem, getMenuSize, getRawInventory, getSize, getViewers, hashCode, replaceTitle, setItem, setItem
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.kamikazejam.kamicommon.menu.Menu
buildClickData, buildPlayerClickData, getEvents, getMenuSize, getOptions
Methods inherited from interface com.kamikazejam.kamicommon.menu.api.icons.interfaces.UpdatingMenu
getInventory
-
Method Details
-
open
Description copied from class:AbstractMenu
- Overrides:
open
in classAbstractMenu<OneClickMenu>
- Returns:
- The
InventoryView
for the new menu, or null if the player was not online to open the menu for.
-