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, playerFields inherited from class com.kamikazejam.kamicommon.menu.api.MenuHolder
inventory, size, title -
Method Summary
Modifier and TypeMethodDescriptionbooleancountsForClick(@Nullable MenuIcon<?> icon, int slot) @Nullable InventoryViewopen()Methods inherited from class com.kamikazejam.kamicommon.menu.AbstractMenu
close, getFillerIcon, getMenuIcons, getMenuIconsAccess, modifyIcons, open, placeFiller, placeIcons, reopenMenu, reopenMenu, resizeMenu, setSize, updateOneTickMethods 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, setItemMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.kamikazejam.kamicommon.menu.Menu
buildClickData, buildPlayerClickData, getEvents, getMenuSize, getOptionsMethods inherited from interface com.kamikazejam.kamicommon.menu.api.icons.interfaces.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.
-