Package net.citizensnpcs.api.gui
Class InputMenus
java.lang.Object
net.citizensnpcs.api.gui.InputMenus
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclickToggle
(Function<Boolean, String> transformer, boolean initialValue) static InventoryMenuPage
static <T> InventoryMenuPage
picker
(String title, Consumer<InputMenus.Choice<T>> callback, InputMenus.Choice<T>... choices) static void
runChatStringSetter
(InventoryMenu menu, HumanEntity viewer, String description, Consumer<String> callback) static InventoryMenuPage
stringSetter
(Supplier<String> initialValue, Consumer<String> callback) static <T> InventoryMenuPage
toggle
(String title, Consumer<List<InputMenus.Choice<T>>> callback, InputMenus.Choice<T>... choices)
-
Constructor Details
-
InputMenus
public InputMenus()
-
-
Method Details
-
clickToggle
public static InputMenus.BooleanSlotHandler clickToggle(Function<Boolean, String> transformer, boolean initialValue) -
filteredStringSetter
-
picker
public static <T> InventoryMenuPage picker(String title, Consumer<InputMenus.Choice<T>> callback, InputMenus.Choice<T>... choices) -
runChatStringSetter
public static void runChatStringSetter(InventoryMenu menu, HumanEntity viewer, String description, Consumer<String> callback) -
stringSetter
public static InventoryMenuPage stringSetter(Supplier<String> initialValue, Consumer<String> callback) -
toggle
public static <T> InventoryMenuPage toggle(String title, Consumer<List<InputMenus.Choice<T>>> callback, InputMenus.Choice<T>... choices) -
toggler
public static InputMenus.BooleanSlotHandler toggler(Consumer<Boolean> consumer, boolean initialValue)
-