Index
All Classes and Interfaces|All Packages
A
- addElement(char, ItemStack, GuiElement.Action, String...) - Method in class de.themoep.inventorygui.InventoryGui
-
Create and add a
StaticGuiElement
in one quick method. - addElement(char, ItemStack, String...) - Method in class de.themoep.inventorygui.InventoryGui
-
Create and add a
StaticGuiElement
that has no action. - addElement(char, MaterialData, GuiElement.Action, String...) - Method in class de.themoep.inventorygui.InventoryGui
-
Create and add a
StaticGuiElement
in one quick method. - addElement(char, Material, byte, GuiElement.Action, String...) - Method in class de.themoep.inventorygui.InventoryGui
-
Create and add a
StaticGuiElement
- addElement(char, Material, GuiElement.Action, String...) - Method in class de.themoep.inventorygui.InventoryGui
-
Create and add a
StaticGuiElement
- addElement(GuiElement) - Method in class de.themoep.inventorygui.GuiElementGroup
-
Add an element to this group
- addElement(GuiElement) - Method in class de.themoep.inventorygui.InventoryGui
-
Add an element to the gui with its position directly based on the elements slot char and the gui setup string
- addElements(GuiElement...) - Method in class de.themoep.inventorygui.GuiElementGroup
-
Add elements to this group
- addElements(GuiElement...) - Method in class de.themoep.inventorygui.InventoryGui
-
Add multiple elements to the gui with their position based on their slot character
- addElements(Collection<GuiElement>) - Method in class de.themoep.inventorygui.GuiElementGroup
-
Add elements to this group
- addElements(Collection<GuiElement>) - Method in class de.themoep.inventorygui.InventoryGui
-
Add multiple elements to the gui with their position based on their slot character
- addHistory(HumanEntity, InventoryGui) - Static method in class de.themoep.inventorygui.InventoryGui
-
Add a new history entry to the end of the history
B
- build() - Method in class de.themoep.inventorygui.InventoryGui
-
Build the gui
- build(InventoryHolder) - Method in class de.themoep.inventorygui.InventoryGui
-
Set the gui's owner and build it
C
- canClose() - Method in class de.themoep.inventorygui.GuiBackElement
-
Whether this element can close the GUI when nothing to go back to
- CENTER - Enum constant in enum de.themoep.inventorygui.GuiElementGroup.Alignment
- ChangeHandler(Consumer<GuiElement.Click>, Consumer<GuiElement.Click>) - Constructor for class de.themoep.inventorygui.GuiStateElement.State.ChangeHandler
-
A simple implementation of the
GuiStateElement.State.Change
interface that allows for lambda expressions for the state enter and leave methods - clearElements() - Method in class de.themoep.inventorygui.GuiElementGroup
-
Removes all elements in the group
- clearHistory(HumanEntity) - Static method in class de.themoep.inventorygui.InventoryGui
-
Clear the history of a player
- Click(InventoryGui, int, ClickType, ItemStack, GuiElement, InventoryInteractEvent) - Constructor for class de.themoep.inventorygui.GuiElement.Click
- close() - Method in class de.themoep.inventorygui.InventoryGui
-
Closes the GUI for everyone viewing it
- close(boolean) - Method in class de.themoep.inventorygui.InventoryGui
-
Close the GUI for everyone viewing it
- close(HumanEntity) - Method in class de.themoep.inventorygui.InventoryGui
-
Closes the GUI for a specific viewer it
- close(HumanEntity, boolean) - Method in class de.themoep.inventorygui.InventoryGui
-
Closes the GUI for a specific viewer it
- Close(HumanEntity, InventoryGui, InventoryCloseEvent) - Constructor for class de.themoep.inventorygui.InventoryGui.Close
- create(InventoryGui, HumanEntity, T) - Method in interface de.themoep.inventorygui.InventoryGui.InventoryCreator.CreatorImplementation
-
Creates a new inventory
D
- de.themoep.inventorygui - package de.themoep.inventorygui
- destroy() - Method in class de.themoep.inventorygui.InventoryGui
-
Destroy this GUI.
- draw() - Method in class de.themoep.inventorygui.InventoryGui
-
Draw the elements in the inventory.
- draw(HumanEntity) - Method in class de.themoep.inventorygui.InventoryGui
-
Draw the elements in the inventory.
- draw(HumanEntity, boolean) - Method in class de.themoep.inventorygui.InventoryGui
-
Draw the elements in the inventory.
- draw(HumanEntity, boolean, boolean) - Method in class de.themoep.inventorygui.InventoryGui
-
Draw the elements in the inventory.
- DynamicGuiElement - Class in de.themoep.inventorygui
-
Represents an element in a gui that will query all it's data when drawn.
- DynamicGuiElement(char, Function<HumanEntity, GuiElement>) - Constructor for class de.themoep.inventorygui.DynamicGuiElement
-
Represents an element in a gui that will query all it's data when drawn.
- DynamicGuiElement(char, Supplier<GuiElement>) - Constructor for class de.themoep.inventorygui.DynamicGuiElement
-
Represents an element in a gui that will query all it's data when drawn.
- DynamicGuiElement.CacheEntry - Class in de.themoep.inventorygui
F
- filler(ItemStack) - Method in class de.themoep.inventorygui.InventoryGui
-
Set the filler element for empty slots
- FIRST - Enum constant in enum de.themoep.inventorygui.GuiPageElement.PageAction
G
- get(InventoryHolder) - Static method in class de.themoep.inventorygui.InventoryGui
-
Get the GUI registered to an InventoryHolder
- getAction(HumanEntity) - Method in class de.themoep.inventorygui.DynamicGuiElement
- getAction(HumanEntity) - Method in class de.themoep.inventorygui.GuiElement
-
Get the action that is executed when clicking on this element
- getAlignment() - Method in class de.themoep.inventorygui.GuiElementGroup
-
Get the alignment of the elements in this group
- getApplyStorage() - Method in class de.themoep.inventorygui.GuiStorageElement
-
Get the runnable that applies the storage
- getCachedElement(HumanEntity) - Method in class de.themoep.inventorygui.DynamicGuiElement
-
Get the cached element, creates a new one if there is none for that player.
- getClickSound() - Method in class de.themoep.inventorygui.InventoryGui
-
Set the sound that plays when a button (that isn't preventing the item from being taken) is clicked in the GUI.
- getCloseAction() - Method in class de.themoep.inventorygui.InventoryGui
-
Get the action that is run when this GUI is closed
- getCreated() - Method in class de.themoep.inventorygui.DynamicGuiElement.CacheEntry
- getCursor() - Method in class de.themoep.inventorygui.GuiElement.Click
-
Get the item on the cursor
- getDefaultClickSound() - Static method in class de.themoep.inventorygui.InventoryGui
-
Get the click sound to use for non-silent GUIs that don't have a specific one set
- getElement() - Method in class de.themoep.inventorygui.DynamicGuiElement.CacheEntry
- getElement() - Method in class de.themoep.inventorygui.GuiElement.Click
-
Get the element that was clicked
- getElement() - Method in class de.themoep.inventorygui.GuiStorageElement.ValidatorInfo
- getElement(char) - Method in class de.themoep.inventorygui.InventoryGui
-
Get an element by its character
- getElement(int) - Method in class de.themoep.inventorygui.GuiElementGroup
-
Get the element in a certain slot
- getElement(int) - Method in class de.themoep.inventorygui.InventoryGui
-
Get element in a certain slot
- getElement(int, int) - Method in class de.themoep.inventorygui.GuiElementGroup
-
Get the element in a certain slot on a certain page
- getElements() - Method in class de.themoep.inventorygui.GuiElementGroup
-
Get all elements of this group.
- getElements() - Method in class de.themoep.inventorygui.InventoryGui
-
Get all elements of this gui.
- getEvent() - Method in class de.themoep.inventorygui.InventoryGui.Close
- getFiller() - Method in class de.themoep.inventorygui.GuiElementGroup
-
Get the filler element
- getFiller() - Method in class de.themoep.inventorygui.InventoryGui
-
Get the filler element
- getGui() - Method in class de.themoep.inventorygui.GuiElement.Click
- getGui() - Method in class de.themoep.inventorygui.GuiElement
-
Get the gui this element belongs to
- getGui() - Method in class de.themoep.inventorygui.InventoryGui.Close
- getGui() - Method in class de.themoep.inventorygui.InventoryGui.Holder
- getHistory(HumanEntity) - Static method in class de.themoep.inventorygui.InventoryGui
-
Get the history of a player
- getInventory() - Method in class de.themoep.inventorygui.InventoryGui.Holder
- getInventoryCreator() - Method in class de.themoep.inventorygui.InventoryGui
-
Get the helper class which will create the custom inventory for this gui.
- getItem() - Method in class de.themoep.inventorygui.GuiStateElement.State
-
Deprecated.
- getItem() - Method in class de.themoep.inventorygui.GuiStorageElement.ValidatorInfo
- getItem(HumanEntity) - Method in class de.themoep.inventorygui.GuiStateElement.State
-
Get the
ItemStack
that represents this state. - getItem(HumanEntity, int) - Method in class de.themoep.inventorygui.DynamicGuiElement
- getItem(HumanEntity, int) - Method in class de.themoep.inventorygui.GuiBackElement
- getItem(HumanEntity, int) - Method in class de.themoep.inventorygui.GuiElement
-
Get the item that is displayed by this element on a certain page
- getItem(HumanEntity, int) - Method in class de.themoep.inventorygui.GuiElementGroup
- getItem(HumanEntity, int) - Method in class de.themoep.inventorygui.GuiPageElement
- getItem(HumanEntity, int) - Method in class de.themoep.inventorygui.GuiStateElement
- getItem(HumanEntity, int) - Method in class de.themoep.inventorygui.GuiStorageElement
- getItem(HumanEntity, int) - Method in class de.themoep.inventorygui.StaticGuiElement
- getItemLoreSetter() - Method in class de.themoep.inventorygui.InventoryGui
-
Get the setter for item lores.
- getItemNameSetter() - Method in class de.themoep.inventorygui.InventoryGui
-
Get the setter for item names.
- getItemValidator() - Method in class de.themoep.inventorygui.GuiStorageElement
-
Deprecated.
- getKey() - Method in class de.themoep.inventorygui.GuiStateElement.State
-
Get the string key of the state.
- getLastCached(HumanEntity) - Method in class de.themoep.inventorygui.DynamicGuiElement
-
Get the time at which this element was last cached for a certain player
- getNumber() - Method in class de.themoep.inventorygui.StaticGuiElement
-
Get the number that this element should display
- getOpen(HumanEntity) - Static method in class de.themoep.inventorygui.InventoryGui
-
Get the GUI that a player has currently open
- getOutsideAction() - Method in class de.themoep.inventorygui.InventoryGui
-
Get the Action that is run when clicked outside of the inventory
- getOwner() - Method in class de.themoep.inventorygui.InventoryGui
-
Get the owner of this GUI.
- getPageAmount(HumanEntity) - Method in class de.themoep.inventorygui.InventoryGui
-
Get the amount of pages that this GUI has for a certain player
- getPageNumber(HumanEntity) - Method in class de.themoep.inventorygui.InventoryGui
-
Get the number of the page that this gui is on.
- getPlaceValidator() - Method in class de.themoep.inventorygui.GuiStorageElement
-
Get the item place validator
- getPlayer() - Method in class de.themoep.inventorygui.InventoryGui.Close
- getPlugin() - Method in class de.themoep.inventorygui.InventoryGui
-
Get the plugin which owns this GUI.
- getQuery() - Method in class de.themoep.inventorygui.DynamicGuiElement
-
Get the supplier for this element's content
- getRawEvent() - Method in class de.themoep.inventorygui.GuiElement.Click
-
Get the event of the inventory interaction
- getRawItem() - Method in class de.themoep.inventorygui.StaticGuiElement
-
Get the raw item displayed by this element which was passed to the constructor or set with
StaticGuiElement.setItem(ItemStack)
. - getSizeCreator() - Method in class de.themoep.inventorygui.InventoryGui.InventoryCreator
- getSlot() - Method in class de.themoep.inventorygui.GuiElement.Click
-
Get the slot of the GUI that was clicked
- getSlot() - Method in class de.themoep.inventorygui.GuiStorageElement.ValidatorInfo
- getSlotChar() - Method in class de.themoep.inventorygui.GuiElement
-
Get the character in the gui setup that corresponds with this element
- getSlotIndex(int) - Method in class de.themoep.inventorygui.GuiElement
-
Get the index that this slot has in the list of slots that this element is displayed in
- getSlotIndex(int, int) - Method in class de.themoep.inventorygui.GuiElement
-
Get the index that this slot has in the list of slots that this element is displayed in
- getSlots() - Method in class de.themoep.inventorygui.GuiElement
-
Get the indexes of the lots that this element is displayed in
- getState() - Method in class de.themoep.inventorygui.GuiStateElement
-
Get the current state of this element
- getStorage() - Method in class de.themoep.inventorygui.GuiStorageElement
-
Get the
Inventory
that this element is linked to. - getStorageItem(int) - Method in class de.themoep.inventorygui.GuiStorageElement
-
Deprecated.
- getStorageItem(HumanEntity, int) - Method in class de.themoep.inventorygui.GuiStorageElement
-
Get the item in the storage that corresponds to the InventoryGui slot
- getTakeValidator() - Method in class de.themoep.inventorygui.GuiStorageElement
-
Get the item take validator
- getText() - Method in class de.themoep.inventorygui.GuiStateElement.State
-
Get the text lines that describe this state.
- getText() - Method in class de.themoep.inventorygui.StaticGuiElement
-
Get the text that this element displays
- getTitle() - Method in class de.themoep.inventorygui.InventoryGui
-
Get the title of the gui
- getType() - Method in class de.themoep.inventorygui.GuiElement.Click
-
Get the type of the click
- getTypeCreator() - Method in class de.themoep.inventorygui.InventoryGui.InventoryCreator
- getWhoClicked() - Method in class de.themoep.inventorygui.GuiElement.Click
-
Get who clicked the element
- goBack(HumanEntity) - Static method in class de.themoep.inventorygui.InventoryGui
-
Go back one entry in the history
- gui - Variable in class de.themoep.inventorygui.GuiElement
- GuiBackElement - Class in de.themoep.inventorygui
-
An element that will not appear if there is no previous history, but will go back one step if there is
- GuiBackElement(char, ItemStack, boolean, String...) - Constructor for class de.themoep.inventorygui.GuiBackElement
-
An element used to go back in history of the gui
- GuiBackElement(char, ItemStack, String...) - Constructor for class de.themoep.inventorygui.GuiBackElement
-
An element used to go back in history of the gui if there is something to go back to.
- GuiElement - Class in de.themoep.inventorygui
-
Represents an element in a gui
- GuiElement(char) - Constructor for class de.themoep.inventorygui.GuiElement
-
Represents an element in a gui that doesn't have any action when clicked
- GuiElement(char, GuiElement.Action) - Constructor for class de.themoep.inventorygui.GuiElement
-
Represents an element in a gui
- GuiElement.Action - Interface in de.themoep.inventorygui
-
A functional interface for specifying how clicking on the element should be treated by implementing the
GuiElement.Action.onClick(Click)
method. - GuiElement.Click - Class in de.themoep.inventorygui
- GuiElementGroup - Class in de.themoep.inventorygui
-
Represents a group of multiple elements.
- GuiElementGroup(char, GuiElement...) - Constructor for class de.themoep.inventorygui.GuiElementGroup
-
A group of elements
- GuiElementGroup.Alignment - Enum in de.themoep.inventorygui
- GuiPageElement - Class in de.themoep.inventorygui
-
This is an element that allows for controlling the pagination of the gui.
- GuiPageElement(char, ItemStack, GuiPageElement.PageAction, String...) - Constructor for class de.themoep.inventorygui.GuiPageElement
-
An element that allows for controlling the pagination of the gui.
- GuiPageElement.PageAction - Enum in de.themoep.inventorygui
- GuiStateElement - Class in de.themoep.inventorygui
-
An element that can switch between certain states.
- GuiStateElement(char, boolean, int, GuiStateElement.State...) - Constructor for class de.themoep.inventorygui.GuiStateElement
-
An element that can switch between certain states.
- GuiStateElement(char, boolean, GuiStateElement.State...) - Constructor for class de.themoep.inventorygui.GuiStateElement
-
An element that can switch between certain states.
- GuiStateElement(char, boolean, String, GuiStateElement.State...) - Constructor for class de.themoep.inventorygui.GuiStateElement
-
An element that can switch between certain states.
- GuiStateElement(char, boolean, Supplier<String>, GuiStateElement.State...) - Constructor for class de.themoep.inventorygui.GuiStateElement
-
An element that can switch between certain states.
- GuiStateElement(char, int, GuiStateElement.State...) - Constructor for class de.themoep.inventorygui.GuiStateElement
-
An element that can switch between certain states.
- GuiStateElement(char, GuiStateElement.State...) - Constructor for class de.themoep.inventorygui.GuiStateElement
-
An element that can switch between certain states.
- GuiStateElement(char, String, GuiStateElement.State...) - Constructor for class de.themoep.inventorygui.GuiStateElement
-
An element that can switch between certain states.
- GuiStateElement(char, Supplier<String>, GuiStateElement.State...) - Constructor for class de.themoep.inventorygui.GuiStateElement
-
An element that can switch between certain states.
- GuiStateElement.State - Class in de.themoep.inventorygui
-
A state that the
GuiStateElement
can have. - GuiStateElement.State.Change - Interface in de.themoep.inventorygui
-
Define what should happen when the state of the element' state changes to this state
- GuiStateElement.State.ChangeHandler - Class in de.themoep.inventorygui
-
A simple implementation of the
GuiStateElement.State.Change
interface that allows for lambda expressions for the state enter and leave methods - GuiStorageElement - Class in de.themoep.inventorygui
-
This element is used to access an
Inventory
. - GuiStorageElement(char, Inventory) - Constructor for class de.themoep.inventorygui.GuiStorageElement
-
An element used to access an
Inventory
. - GuiStorageElement(char, Inventory, int) - Constructor for class de.themoep.inventorygui.GuiStorageElement
-
An element used to access a specific slot in an
Inventory
. - GuiStorageElement(char, Inventory, int, Runnable, Function<GuiStorageElement.ValidatorInfo, Boolean>) - Constructor for class de.themoep.inventorygui.GuiStorageElement
-
An element used to access a specific slot in an
Inventory
. - GuiStorageElement(char, Inventory, int, Runnable, Function<GuiStorageElement.ValidatorInfo, Boolean>, Function<GuiStorageElement.ValidatorInfo, Boolean>) - Constructor for class de.themoep.inventorygui.GuiStorageElement
-
An element used to access a specific slot in an
Inventory
. - GuiStorageElement.ValidatorInfo - Class in de.themoep.inventorygui
H
- hasRealOwner() - Method in class de.themoep.inventorygui.InventoryGui
-
Check whether or not the Owner of this GUI is real or fake
- Holder(InventoryGui) - Constructor for class de.themoep.inventorygui.InventoryGui.Holder
I
- InventoryCreator(InventoryGui.InventoryCreator.CreatorImplementation<InventoryType>, InventoryGui.InventoryCreator.CreatorImplementation<Integer>) - Constructor for class de.themoep.inventorygui.InventoryGui.InventoryCreator
-
A new inventory creator which should be able to create an inventory based on the type and the size.
- InventoryGui - Class in de.themoep.inventorygui
-
The main library class that lets you create and manage your GUIs
- InventoryGui(Plugin, InventoryGui.InventoryCreator, BiConsumer<ItemMeta, String>, BiConsumer<ItemMeta, List<String>>, InventoryHolder, String, String[], GuiElement...) - Constructor for class de.themoep.inventorygui.InventoryGui
-
Create a new gui with a certain setup and some elements
- InventoryGui(Plugin, InventoryGui.InventoryCreator, InventoryHolder, String, String[], GuiElement...) - Constructor for class de.themoep.inventorygui.InventoryGui
-
Create a new gui with a certain setup and some elements
- InventoryGui(Plugin, String, String[], GuiElement...) - Constructor for class de.themoep.inventorygui.InventoryGui
-
The simplest way to create a new gui.
- InventoryGui(Plugin, InventoryHolder, String, String[], GuiElement...) - Constructor for class de.themoep.inventorygui.InventoryGui
-
Create a new gui with a certain setup and some elements
- InventoryGui(Plugin, InventoryHolder, String, String[], Collection<GuiElement>) - Constructor for class de.themoep.inventorygui.InventoryGui
-
Create a new gui that has no owner with a certain setup and some elements
- InventoryGui.Close - Class in de.themoep.inventorygui
- InventoryGui.CloseAction - Interface in de.themoep.inventorygui
-
A functional interface for specifying how closing the inventory should be treated by implementing the
InventoryGui.CloseAction.onClose(Close)
method. - InventoryGui.Holder - Class in de.themoep.inventorygui
-
Fake InventoryHolder for the GUIs
- InventoryGui.InventoryCreator - Class in de.themoep.inventorygui
- InventoryGui.InventoryCreator.CreatorImplementation<T> - Interface in de.themoep.inventorygui
- isSilent() - Method in class de.themoep.inventorygui.GuiPageElement
-
Get whether or not this element should make a sound when interacted with
- isSilent() - Method in class de.themoep.inventorygui.GuiStateElement
-
Get whether or not this element should make a sound when interacted with
- isSilent() - Method in class de.themoep.inventorygui.InventoryGui
-
Get whether or not this GUI should make a sound when interacting with elements that make sound
L
- LAST - Enum constant in enum de.themoep.inventorygui.GuiPageElement.PageAction
- LEFT - Enum constant in enum de.themoep.inventorygui.GuiElementGroup.Alignment
N
- NEXT - Enum constant in enum de.themoep.inventorygui.GuiPageElement.PageAction
- nextState() - Method in class de.themoep.inventorygui.GuiStateElement
-
Loop through the states of this element
O
- onChange(GuiElement.Click) - Method in interface de.themoep.inventorygui.GuiStateElement.State.Change
-
What should happen when the element's state changes to this state
- onChange(GuiElement.Click) - Method in class de.themoep.inventorygui.GuiStateElement.State.ChangeHandler
- onClick(GuiElement.Click) - Method in interface de.themoep.inventorygui.GuiElement.Action
-
Executed when a player clicks on an element
- onClose(InventoryGui.Close) - Method in interface de.themoep.inventorygui.InventoryGui.CloseAction
-
Executed when a player closes a GUI inventory
- onLeave(GuiElement.Click) - Method in interface de.themoep.inventorygui.GuiStateElement.State.Change
-
What should happen when the element's state changes away from this state
- onLeave(GuiElement.Click) - Method in class de.themoep.inventorygui.GuiStateElement.State.ChangeHandler
P
- playClickSound() - Method in class de.themoep.inventorygui.InventoryGui
-
Play a click sound e.g.
- PREVIOUS - Enum constant in enum de.themoep.inventorygui.GuiPageElement.PageAction
- previousState() - Method in class de.themoep.inventorygui.GuiStateElement
-
Loop through the states of this element backwards
Q
- queryElement(HumanEntity) - Method in class de.themoep.inventorygui.DynamicGuiElement
-
Query the element for a player
R
- removeCachedElement(HumanEntity) - Method in class de.themoep.inventorygui.DynamicGuiElement
-
Remove the cached element if the player has one.
- removeElement(char) - Method in class de.themoep.inventorygui.InventoryGui
-
Remove the element that is currently assigned to a specific slot char from all slots in the gui
- removeElement(int) - Method in class de.themoep.inventorygui.InventoryGui
-
Remove the element that is currently in a specific slot.
- removeElement(GuiElement) - Method in class de.themoep.inventorygui.InventoryGui
-
Remove a specific element from this gui.
- replaceVars(HumanEntity, String, String...) - Method in class de.themoep.inventorygui.InventoryGui
-
Replace some placeholders in the with values regarding the gui's state.
- RIGHT - Enum constant in enum de.themoep.inventorygui.GuiElementGroup.Alignment
- runTask(Runnable) - Method in class de.themoep.inventorygui.InventoryGui
-
Schedule a task on the global region/main thread to run on the next tick
- runTask(HumanEntity, Runnable) - Method in class de.themoep.inventorygui.InventoryGui
-
Schedule a task on a
HumanEntity
/main thread to run on the next tick - runTaskOrNow(HumanEntity, Runnable) - Method in class de.themoep.inventorygui.InventoryGui
-
Schedule a task on a
HumanEntity
to run on the next tick Alternatively if the current thread is already the right thread, execute immediately
S
- setAction(GuiElement.Action) - Method in class de.themoep.inventorygui.GuiElement
-
Set the action that is executed when clicking on this element
- setAlignment(GuiElementGroup.Alignment) - Method in class de.themoep.inventorygui.GuiElementGroup
-
Set the alignment of the elements in this group
- setApplyStorage(Runnable) - Method in class de.themoep.inventorygui.GuiStorageElement
-
Set what should be done to apply the storage.
- setClickSound(String) - Method in class de.themoep.inventorygui.InventoryGui
-
Set the sound that plays when a button (that isn't preventing the item from being taken) is clicked in the GUI.
- setCloseAction(InventoryGui.CloseAction) - Method in class de.themoep.inventorygui.InventoryGui
-
Set the action that is run when this GUI is closed; it should return true if the GUI should go back
- setCursor(ItemStack) - Method in class de.themoep.inventorygui.GuiElement.Click
-
Set the item on the cursor after the click
- setDefaultClickSound(String) - Static method in class de.themoep.inventorygui.InventoryGui
-
Set the click sound to use for non-silent GUIs that don't have a specific one set
- setElement(int, GuiElement) - Method in class de.themoep.inventorygui.InventoryGui
-
Directly set the element in a specific slot
- setFiller(GuiElement) - Method in class de.themoep.inventorygui.GuiElementGroup
-
Set the filler element for empty slots
- setFiller(ItemStack) - Method in class de.themoep.inventorygui.GuiElementGroup
-
Set the filler element for empty slots
- setFiller(ItemStack) - Method in class de.themoep.inventorygui.InventoryGui
-
Set the filler element for empty slots
- setGui(InventoryGui) - Method in class de.themoep.inventorygui.DynamicGuiElement
- setGui(InventoryGui) - Method in class de.themoep.inventorygui.GuiElement
-
Set the gui this element belongs to
- setGui(InventoryGui) - Method in class de.themoep.inventorygui.GuiElementGroup
- setGui(InventoryGui) - Method in class de.themoep.inventorygui.GuiStateElement
- setInventoryCreator(InventoryGui.InventoryCreator) - Method in class de.themoep.inventorygui.InventoryGui
-
Set the helper class which will create the custom inventory for this gui.
- setItem(ItemStack) - Method in class de.themoep.inventorygui.StaticGuiElement
-
Set the item that is displayed by this element
- setItemLoreSetter(BiConsumer<ItemMeta, List<String>>) - Method in class de.themoep.inventorygui.InventoryGui
-
Sets the setter for item lores.
- setItemNameSetter(BiConsumer<ItemMeta, String>) - Method in class de.themoep.inventorygui.InventoryGui
-
Sets the setter ofr item names.
- setItemText(HumanEntity, ItemStack, String...) - Method in class de.themoep.inventorygui.InventoryGui
-
Set the text of an item using the display name and the lore.
- setItemText(ItemStack, String...) - Method in class de.themoep.inventorygui.InventoryGui
-
Deprecated.
- setItemValidator(Function<GuiStorageElement.ValidatorInfo, Boolean>) - Method in class de.themoep.inventorygui.GuiStorageElement
-
Deprecated.
- setNumber(int) - Method in class de.themoep.inventorygui.StaticGuiElement
-
Set the number that this element should display (via the Item's amount)
- setOutsideAction(GuiElement.Action) - Method in class de.themoep.inventorygui.InventoryGui
-
Set the Action that is run when clicked outside of the inventory
- setOwner(InventoryHolder) - Method in class de.themoep.inventorygui.InventoryGui
-
Set the owner of this GUI.
- setPageNumber(int) - Method in class de.themoep.inventorygui.InventoryGui
-
Set the number of the page that this gui is on for all players.
- setPageNumber(HumanEntity, int) - Method in class de.themoep.inventorygui.InventoryGui
-
Set the number of the page that this gui is on for a player.
- setPlaceValidator(Function<GuiStorageElement.ValidatorInfo, Boolean>) - Method in class de.themoep.inventorygui.GuiStorageElement
-
Set a function that can validate whether an item can be placed in the slot
- setQuery(Function<HumanEntity, GuiElement>) - Method in class de.themoep.inventorygui.DynamicGuiElement
-
Set the supplier for this element's content
- setSilent(boolean) - Method in class de.themoep.inventorygui.GuiPageElement
-
Set whether or not this element should make a sound when interacted with
- setSilent(boolean) - Method in class de.themoep.inventorygui.GuiStateElement
-
Set whether or not this element should make a sound when interacted with
- setSilent(boolean) - Method in class de.themoep.inventorygui.InventoryGui
-
Set whether or not this GUI should make a sound when interacting with elements that make sound
- setSlots(int[]) - Method in class de.themoep.inventorygui.GuiElement
-
Set the ids of the slots where this element is assigned to
- setSlots(int[]) - Method in class de.themoep.inventorygui.GuiElementGroup
- setState(String) - Method in class de.themoep.inventorygui.GuiStateElement
-
Set the current state with the state's key.
- setStorageItem(int, ItemStack) - Method in class de.themoep.inventorygui.GuiStorageElement
-
Deprecated.
- setStorageItem(HumanEntity, int, ItemStack) - Method in class de.themoep.inventorygui.GuiStorageElement
-
Set the item in the storage that corresponds to the InventoryGui slot.
- setSwitchStateOnClick(boolean) - Method in class de.themoep.inventorygui.GuiStateElement
-
Set whether the state of this element should switch each time it is clicked
- setTakeValidator(Function<GuiStorageElement.ValidatorInfo, Boolean>) - Method in class de.themoep.inventorygui.GuiStorageElement
-
Set a function that can validate whether an item can be taken from the slot
- setText(String...) - Method in class de.themoep.inventorygui.GuiStateElement.State
-
Set this element's display text.
- setText(String...) - Method in class de.themoep.inventorygui.StaticGuiElement
-
Set this element's display text.
- setTitle(String) - Method in class de.themoep.inventorygui.InventoryGui
-
Set the title of the gui
- shouldSwitchStateOnClick() - Method in class de.themoep.inventorygui.GuiStateElement
-
Get whether the state of this element should switch each time it is clicked
- show(HumanEntity) - Method in class de.themoep.inventorygui.InventoryGui
-
Show this GUI to a player
- show(HumanEntity, boolean) - Method in class de.themoep.inventorygui.InventoryGui
-
Show this GUI to a player
- size() - Method in class de.themoep.inventorygui.GuiElementGroup
-
Get the size of this group
- slots - Variable in class de.themoep.inventorygui.GuiElement
- State(GuiStateElement.State.Change, String, ItemStack, String...) - Constructor for class de.themoep.inventorygui.GuiStateElement.State
-
A state that the
GuiStateElement
can have. - StaticGuiElement - Class in de.themoep.inventorygui
-
Represents a simple element in a gui to which an action can be assigned.
- StaticGuiElement(char, ItemStack, int, GuiElement.Action, String...) - Constructor for class de.themoep.inventorygui.StaticGuiElement
-
Represents an element in a gui
- StaticGuiElement(char, ItemStack, GuiElement.Action, String...) - Constructor for class de.themoep.inventorygui.StaticGuiElement
-
Represents an element in a gui
- StaticGuiElement(char, ItemStack, String...) - Constructor for class de.themoep.inventorygui.StaticGuiElement
-
Represents an element in a gui that doesn't have any action when clicked
U
- update() - Method in class de.themoep.inventorygui.DynamicGuiElement
-
Query this element's state for every player who had it cached
- update(HumanEntity) - Method in class de.themoep.inventorygui.DynamicGuiElement
-
Query this element's state for a certain player
- updateElements(HumanEntity, Collection<GuiElement>) - Static method in class de.themoep.inventorygui.InventoryGui
-
Update all dynamic elements in a collection of elements.
V
- validateItem(int, ItemStack) - Method in class de.themoep.inventorygui.GuiStorageElement
-
Deprecated.
- validateItemPlace(int, ItemStack) - Method in class de.themoep.inventorygui.GuiStorageElement
-
Validate whether an item can be placed in a slot with the item validator set in
GuiStorageElement.setItemValidator(Function)
- validateItemTake(int, ItemStack) - Method in class de.themoep.inventorygui.GuiStorageElement
-
Validate whether an item can be taken from a slot with the item validator set in
GuiStorageElement.setItemValidator(Function)
- ValidatorInfo(GuiElement, int, ItemStack) - Constructor for class de.themoep.inventorygui.GuiStorageElement.ValidatorInfo
- valueOf(String) - Static method in enum de.themoep.inventorygui.GuiElementGroup.Alignment
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum de.themoep.inventorygui.GuiPageElement.PageAction
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum de.themoep.inventorygui.GuiElementGroup.Alignment
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum de.themoep.inventorygui.GuiPageElement.PageAction
-
Returns an array containing the constants of this enum type, in the order they are declared.
All Classes and Interfaces|All Packages
GuiStateElement.State.getItem(HumanEntity)