Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- allowConcurrentClickHandlerExecution() - Method in class net.wesjd.anvilgui.AnvilGUI.Builder
-
By default, the
async click handlerwill not run concurrently and instead wait for the previousCompletableFutureto finish before executing it again. - AnvilGUI - Class in net.wesjd.anvilgui
-
An anvil gui, used for gathering a user's input
- AnvilGUI.Builder - Class in net.wesjd.anvilgui
-
A builder class for an
AnvilGUIobject - AnvilGUI.ClickHandler - Interface in net.wesjd.anvilgui
-
A handler that is called when the user clicks a slot.
- AnvilGUI.Response - Class in net.wesjd.anvilgui
-
Deprecated.
- AnvilGUI.ResponseAction - Interface in net.wesjd.anvilgui
-
An action to run in response to a player clicking the output slot in the GUI.
- AnvilGUI.Slot - Class in net.wesjd.anvilgui
-
Class wrapping the magic constants of slot numbers in an anvil GUI
- AnvilGUI.StateSnapshot - Class in net.wesjd.anvilgui
-
Represents a snapshot of the state of an AnvilGUI
B
- Builder() - Constructor for class net.wesjd.anvilgui.AnvilGUI.Builder
C
- close() - Static method in class net.wesjd.anvilgui.AnvilGUI.Response
-
Deprecated.Since 1.6.2, use
AnvilGUI.ResponseAction.close() - close() - Static method in interface net.wesjd.anvilgui.AnvilGUI.ResponseAction
-
Close the AnvilGUI
- closeInventory() - Method in class net.wesjd.anvilgui.AnvilGUI
-
Closes the inventory if it's open.
D
- disableGeyserCompat() - Method in class net.wesjd.anvilgui.AnvilGUI.Builder
-
Disables compatibility with Geyser software
G
- getInventory() - Method in class net.wesjd.anvilgui.AnvilGUI
-
Returns the Bukkit inventory for this anvil gui
- getLeftItem() - Method in class net.wesjd.anvilgui.AnvilGUI.StateSnapshot
-
It returns the item in the left combine slot of the gui
- getOutputItem() - Method in class net.wesjd.anvilgui.AnvilGUI.StateSnapshot
-
It returns the output item that would have been the result by combining the left and right one
- getPlayer() - Method in class net.wesjd.anvilgui.AnvilGUI.StateSnapshot
-
It returns the player that clicked onto the output slot
- getRightItem() - Method in class net.wesjd.anvilgui.AnvilGUI.StateSnapshot
-
It returns the item in the right combine slot of the gui
- getText() - Method in class net.wesjd.anvilgui.AnvilGUI.StateSnapshot
-
It returns the text the player typed into the rename field
I
- INPUT_LEFT - Static variable in class net.wesjd.anvilgui.AnvilGUI.Slot
-
The slot on the far left, where the first input is inserted.
- INPUT_RIGHT - Static variable in class net.wesjd.anvilgui.AnvilGUI.Slot
-
Not used, but in a real anvil you are able to put the second item you want to combine here
- interactableSlots(int...) - Method in class net.wesjd.anvilgui.AnvilGUI.Builder
-
Permit the user to modify (take items in and out) the slot numbers provided.
- itemLeft(ItemStack) - Method in class net.wesjd.anvilgui.AnvilGUI.Builder
-
Sets the
ItemStackto be put in the first slot - itemOutput(ItemStack) - Method in class net.wesjd.anvilgui.AnvilGUI.Builder
-
Sets the
ItemStackto be put in the output slot - itemRight(ItemStack) - Method in class net.wesjd.anvilgui.AnvilGUI.Builder
-
Sets the
ItemStackto be put in the second slot
J
- jsonTitle(String) - Method in class net.wesjd.anvilgui.AnvilGUI.Builder
-
Sets the AnvilGUI title that is to be displayed to the user.
M
- mainThreadExecutor(Executor) - Method in class net.wesjd.anvilgui.AnvilGUI.Builder
-
Set a custom main server thread executor.
- match() - Method in class net.wesjd.anvilgui.version.VersionMatcher
-
Matches the server version to it's
VersionWrapper
N
- net.wesjd.anvilgui - package net.wesjd.anvilgui
- net.wesjd.anvilgui.version - package net.wesjd.anvilgui.version
O
- onClick(BiFunction<Integer, AnvilGUI.StateSnapshot, List<AnvilGUI.ResponseAction>>) - Method in class net.wesjd.anvilgui.AnvilGUI.Builder
-
Do an action when a slot is clicked in the inventory
- onClickAsync(AnvilGUI.ClickHandler) - Method in class net.wesjd.anvilgui.AnvilGUI.Builder
-
Do an action when a slot is clicked in the inventory
- onClose(Consumer<AnvilGUI.StateSnapshot>) - Method in class net.wesjd.anvilgui.AnvilGUI.Builder
-
Listens for when the inventory is closed
- open(Player) - Method in class net.wesjd.anvilgui.AnvilGUI.Builder
-
Creates the anvil GUI and opens it for the player
- openInventory(Inventory) - Static method in class net.wesjd.anvilgui.AnvilGUI.Response
-
Deprecated.Since 1.6.2, use
AnvilGUI.ResponseAction.openInventory(Inventory) - openInventory(Inventory) - Static method in interface net.wesjd.anvilgui.AnvilGUI.ResponseAction
-
Open another inventory
- OUTPUT - Static variable in class net.wesjd.anvilgui.AnvilGUI.Slot
-
The output slot, where an item is put when two items are combined from
AnvilGUI.Slot.INPUT_LEFTandAnvilGUI.Slot.INPUT_RIGHTorAnvilGUI.Slot.INPUT_LEFTis renamed
P
- plugin(Plugin) - Method in class net.wesjd.anvilgui.AnvilGUI.Builder
-
Sets the plugin for the
AnvilGUI - preventClose() - Method in class net.wesjd.anvilgui.AnvilGUI.Builder
-
Prevents the closing of the anvil GUI by the user
R
- replaceInputText(String) - Static method in interface net.wesjd.anvilgui.AnvilGUI.ResponseAction
-
Replace the input text box value with the provided text value.
- Response() - Constructor for class net.wesjd.anvilgui.AnvilGUI.Response
-
Deprecated.
- run(Runnable) - Static method in interface net.wesjd.anvilgui.AnvilGUI.ResponseAction
-
Run the provided runnable
S
- setJsonTitle(String, boolean) - Method in class net.wesjd.anvilgui.AnvilGUI
-
Updates the title of the AnvilGUI to the new one.
- setTitle(String, boolean) - Method in class net.wesjd.anvilgui.AnvilGUI
-
Updates the title of the AnvilGUI to the new one.
- Slot() - Constructor for class net.wesjd.anvilgui.AnvilGUI.Slot
- StateSnapshot(ItemStack, ItemStack, ItemStack, Player) - Constructor for class net.wesjd.anvilgui.AnvilGUI.StateSnapshot
-
The event parameter constructor
T
- text(String) - Method in class net.wesjd.anvilgui.AnvilGUI.Builder
-
Sets the initial item-text that is displayed to the user.
- text(String) - Static method in class net.wesjd.anvilgui.AnvilGUI.Response
-
Deprecated.Since 1.6.2, use
AnvilGUI.ResponseAction.replaceInputText(String) - title(String) - Method in class net.wesjd.anvilgui.AnvilGUI.Builder
-
Sets the AnvilGUI title that is to be displayed to the user.
U
- updateJsonTitle(String, boolean) - Static method in interface net.wesjd.anvilgui.AnvilGUI.ResponseAction
-
Updates the title of the AnvilGUI to the new one.
- updateTitle(String, boolean) - Static method in interface net.wesjd.anvilgui.AnvilGUI.ResponseAction
-
Updates the title of the AnvilGUI to the new one.
V
- values() - Static method in class net.wesjd.anvilgui.AnvilGUI.Slot
-
Get all anvil slot values
- VersionMatcher - Class in net.wesjd.anvilgui.version
-
Matches the server's NMS version to its
VersionWrapper - VersionMatcher() - Constructor for class net.wesjd.anvilgui.version.VersionMatcher
All Classes and Interfaces|All Packages|Constant Field Values
AnvilGUI.ResponseAction