Uses of Class
de.themoep.inventorygui.GuiElement
-
Uses of GuiElement in de.themoep.inventorygui
Modifier and TypeClassDescriptionclass
Represents an element in a gui that will query all it's data when drawn.class
An element that will not appear if there is no previous history, but will go back one step if there isclass
Represents a group of multiple elements.class
This is an element that allows for controlling the pagination of the gui.class
An element that can switch between certain states.class
This element is used to access anInventory
.class
Represents a simple element in a gui to which an action can be assigned.Modifier and TypeMethodDescriptionDynamicGuiElement.getCachedElement
(org.bukkit.entity.HumanEntity who) Get the cached element, creates a new one if there is none for that player.DynamicGuiElement.CacheEntry.getElement()
GuiElement.Click.getElement()
Get the element that was clickedGuiElementGroup.getElement
(int slot) Get the element in a certain slotGuiElementGroup.getElement
(int slot, int pageNumber) Get the element in a certain slot on a certain pageGuiStorageElement.ValidatorInfo.getElement()
InventoryGui.getElement
(char c) Get an element by its characterInventoryGui.getElement
(int slot) Get element in a certain slotGuiElementGroup.getFiller()
Get the filler elementInventoryGui.getFiller()
Get the filler elementDynamicGuiElement.queryElement
(org.bukkit.entity.HumanEntity who) Query the element for a playerDynamicGuiElement.removeCachedElement
(org.bukkit.entity.HumanEntity who) Remove the cached element if the player has one.InventoryGui.removeElement
(char slotChar) Remove the element that is currently assigned to a specific slot char from all slots in the guiInventoryGui.removeElement
(int slot) Remove the element that is currently in a specific slot.Modifier and TypeMethodDescriptionGuiElementGroup.getElements()
Get all elements of this group.InventoryGui.getElements()
Get all elements of this gui.Function
<org.bukkit.entity.HumanEntity, GuiElement> DynamicGuiElement.getQuery()
Get the supplier for this element's contentModifier and TypeMethodDescriptionvoid
GuiElementGroup.addElement
(GuiElement element) Add an element to this groupvoid
InventoryGui.addElement
(GuiElement element) Add an element to the gui with its position directly based on the elements slot char and the gui setup stringvoid
GuiElementGroup.addElements
(GuiElement... elements) Add elements to this groupvoid
InventoryGui.addElements
(GuiElement... elements) Add multiple elements to the gui with their position based on their slot characterboolean
InventoryGui.removeElement
(GuiElement element) Remove a specific element from this gui.void
InventoryGui.setElement
(int slot, GuiElement element) Directly set the element in a specific slotvoid
GuiElementGroup.setFiller
(GuiElement filler) Set the filler element for empty slotsModifier and TypeMethodDescriptionvoid
GuiElementGroup.addElements
(Collection<GuiElement> elements) Add elements to this groupvoid
InventoryGui.addElements
(Collection<GuiElement> elements) Add multiple elements to the gui with their position based on their slot charactervoid
DynamicGuiElement.setQuery
(Function<org.bukkit.entity.HumanEntity, GuiElement> query) Set the supplier for this element's contentstatic void
InventoryGui.updateElements
(org.bukkit.entity.HumanEntity who, Collection<GuiElement> elements) Update all dynamic elements in a collection of elements.ModifierConstructorDescriptionClick
(InventoryGui gui, int slot, org.bukkit.event.inventory.ClickType clickType, org.bukkit.inventory.ItemStack cursor, GuiElement element, org.bukkit.event.inventory.InventoryInteractEvent event) GuiElementGroup
(char slotChar, GuiElement... elements) A group of elementsInventoryGui
(org.bukkit.plugin.Plugin plugin, InventoryGui.InventoryCreator creator, BiConsumer<org.bukkit.inventory.meta.ItemMeta, String> itemNameSetter, BiConsumer<org.bukkit.inventory.meta.ItemMeta, List<String>> itemLoreSetter, org.bukkit.inventory.InventoryHolder owner, String title, String[] rows, GuiElement... elements) Create a new gui with a certain setup and some elementsInventoryGui
(org.bukkit.plugin.Plugin plugin, InventoryGui.InventoryCreator creator, org.bukkit.inventory.InventoryHolder owner, String title, String[] rows, GuiElement... elements) Create a new gui with a certain setup and some elementsInventoryGui
(org.bukkit.plugin.Plugin plugin, String title, String[] rows, GuiElement... elements) The simplest way to create a new gui.InventoryGui
(org.bukkit.plugin.Plugin plugin, org.bukkit.inventory.InventoryHolder owner, String title, String[] rows, GuiElement... elements) Create a new gui with a certain setup and some elementsValidatorInfo
(GuiElement element, int slot, org.bukkit.inventory.ItemStack item) ModifierConstructorDescriptionDynamicGuiElement
(char slotChar, Function<org.bukkit.entity.HumanEntity, GuiElement> query) Represents an element in a gui that will query all it's data when drawn.DynamicGuiElement
(char slotChar, Supplier<GuiElement> query) Represents an element in a gui that will query all it's data when drawn.InventoryGui
(org.bukkit.plugin.Plugin plugin, org.bukkit.inventory.InventoryHolder owner, String title, String[] rows, Collection<GuiElement> elements) Create a new gui that has no owner with a certain setup and some elements