Uses of Class
net.wesjd.anvilgui.AnvilGUI.Builder
Packages that use AnvilGUI.Builder
-
Uses of AnvilGUI.Builder in net.wesjd.anvilgui
Methods in net.wesjd.anvilgui that return AnvilGUI.BuilderModifier and TypeMethodDescriptionAnvilGUI.Builder.allowConcurrentClickHandlerExecution()By default, theasync click handlerwill not run concurrently and instead wait for the previousCompletableFutureto finish before executing it again.AnvilGUI.Builder.disableGeyserCompat()Disables compatibility with Geyser softwareAnvilGUI.Builder.interactableSlots(int... slots) Permit the user to modify (take items in and out) the slot numbers provided.AnvilGUI.Builder.itemLeft(org.bukkit.inventory.ItemStack item) Sets theItemStackto be put in the first slotAnvilGUI.Builder.itemOutput(org.bukkit.inventory.ItemStack item) Sets theItemStackto be put in the output slotAnvilGUI.Builder.itemRight(org.bukkit.inventory.ItemStack item) Sets theItemStackto be put in the second slotSets the AnvilGUI title that is to be displayed to the user.AnvilGUI.Builder.mainThreadExecutor(Executor executor) Set a custom main server thread executor.AnvilGUI.Builder.onClick(BiFunction<Integer, AnvilGUI.StateSnapshot, List<AnvilGUI.ResponseAction>> clickHandler) Do an action when a slot is clicked in the inventoryAnvilGUI.Builder.onClickAsync(AnvilGUI.ClickHandler clickHandler) Do an action when a slot is clicked in the inventoryAnvilGUI.Builder.onClose(Consumer<AnvilGUI.StateSnapshot> closeListener) Listens for when the inventory is closedAnvilGUI.Builder.plugin(org.bukkit.plugin.Plugin plugin) Sets the plugin for theAnvilGUIAnvilGUI.Builder.preventClose()Prevents the closing of the anvil GUI by the userSets the initial item-text that is displayed to the user.Sets the AnvilGUI title that is to be displayed to the user.