Uses of Class
net.citizensnpcs.api.gui.InventoryMenuPage
-
Uses of InventoryMenuPage in net.citizensnpcs.api.gui
Modifier and TypeMethodDescriptionstatic InventoryMenuPage
static <T> InventoryMenuPage
InputMenus.picker
(String title, Consumer<InputMenus.Choice<T>> callback, InputMenus.Choice<T>... choices) static InventoryMenuPage
InputMenus.stringSetter
(Supplier<String> initialValue, Consumer<String> callback) static <T> InventoryMenuPage
InputMenus.toggle
(String title, Consumer<List<InputMenus.Choice<T>>> callback, InputMenus.Choice<T>... choices) Modifier and TypeMethodDescriptionstatic InventoryMenu
InventoryMenu.create
(InventoryMenuPage instance) Create an inventory menu instance starting at the given page.static InventoryMenu
InventoryMenu.createSelfRegistered
(InventoryMenuPage instance) Creates an inventory menu instance starting at the given page that registers events and deregisters events when the menu is closed.void
InventoryMenu.transition
(InventoryMenuPage instance) Transition to another page.void
InventoryMenu.transition
(InventoryMenuPage instance, Map<String, Object> context) Transition to another page with context.Modifier and TypeMethodDescriptionstatic InventoryMenu
InventoryMenu.create
(Class<? extends InventoryMenuPage> clazz) Create an inventory menu instance starting at the given page.static InventoryMenu
InventoryMenu.createSelfRegistered
(Class<? extends InventoryMenuPage> clazz) Creates an inventory menu instance starting at the given page that registers events and deregisters events when the menu is closed.static InventoryMenu
InventoryMenu.createWithContext
(Class<? extends InventoryMenuPage> clazz, Map<String, Object> context) Create an inventory menu instance starting at the given page and with the initial context.void
InventoryMenu.transition
(Class<? extends InventoryMenuPage> clazz) Transition to another page.void
InventoryMenu.transition
(Class<? extends InventoryMenuPage> clazz, Map<String, Object> context) Transition to another page with context.ModifierConstructorDescriptionInventoryMenu
(net.citizensnpcs.api.gui.InventoryMenu.InventoryMenuInfo info, InventoryMenuPage instance) ModifierConstructorDescriptionInventoryMenuTransition
(InventoryMenuSlot slot, Class<? extends InventoryMenuPage> transition)