Uses of Class
de.themoep.inventorygui.GuiElement
-
Uses of GuiElement in de.themoep.inventorygui
Subclasses of GuiElement in de.themoep.inventoryguiModifier and TypeClassDescriptionclassRepresents an element in a gui that will query all it's data when drawn.classAn element that will not appear if there is no previous history, but will go back one step if there isclassRepresents a group of multiple elements.classThis is an element that allows for controlling the pagination of the gui.classAn element that can switch between certain states.classThis element is used to access anInventory.classRepresents a simple element in a gui to which an action can be assigned.Methods in de.themoep.inventorygui that return GuiElementModifier 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.Methods in de.themoep.inventorygui that return types with arguments of type GuiElementModifier 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 contentMethods in de.themoep.inventorygui with parameters of type GuiElementModifier and TypeMethodDescriptionvoidGuiElementGroup.addElement(GuiElement element) Add an element to this groupvoidInventoryGui.addElement(GuiElement element) Add an element to the gui with its position directly based on the elements slot char and the gui setup stringvoidGuiElementGroup.addElements(GuiElement... elements) Add elements to this groupvoidInventoryGui.addElements(GuiElement... elements) Add multiple elements to the gui with their position based on their slot characterbooleanInventoryGui.removeElement(GuiElement element) Remove a specific element from this gui.voidInventoryGui.setElement(int slot, GuiElement element) Directly set the element in a specific slotvoidGuiElementGroup.setFiller(GuiElement filler) Set the filler element for empty slotsMethod parameters in de.themoep.inventorygui with type arguments of type GuiElementModifier and TypeMethodDescriptionvoidGuiElementGroup.addElements(Collection<GuiElement> elements) Add elements to this groupvoidInventoryGui.addElements(Collection<GuiElement> elements) Add multiple elements to the gui with their position based on their slot charactervoidDynamicGuiElement.setQuery(Function<org.bukkit.entity.HumanEntity, GuiElement> query) Set the supplier for this element's contentstatic voidInventoryGui.updateElements(org.bukkit.entity.HumanEntity who, Collection<GuiElement> elements) Update all dynamic elements in a collection of elements.Constructors in de.themoep.inventorygui with parameters of type GuiElementModifierConstructorDescriptionClick(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) Constructor parameters in de.themoep.inventorygui with type arguments of type GuiElementModifierConstructorDescriptionDynamicGuiElement(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