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 AbstractMenu
events, menuIcons, options, playerFields inherited from class MenuHolder
inventory, size, title -
Method Summary
Modifier and TypeMethodDescriptionbooleancountsForClick(@Nullable MenuIcon<?> icon, int slot) @Nullable InventoryViewopen()Methods inherited from class AbstractMenu
close, getFillerIcon, getMenuIcons, getMenuIconsAccess, modifyIcons, open, placeFiller, placeIcons, reopenMenu, reopenMenu, resizeMenu, setSize, updateOneTickMethods inherited from class MenuHolder
clear, closeAll, deleteInventory, equals, firstEmpty, firstEmpty, firstEmpty, getHolder, getInventory, getItem, getMenuSize, getRawInventory, getSize, getViewers, hashCode, replaceTitle, setItem, setItemMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Menu
buildClickData, buildPlayerClickData, getEvents, getMenuSize, getOptionsMethods inherited from interface UpdatingMenu
getInventory
-
Method Details
-
open
Description copied from class:AbstractMenu- Overrides:
openin classAbstractMenu<OneClickMenu>- Returns:
- The
InventoryViewfor the new menu, or null if the player was not online to open the menu for.
-