Uses of Interface
xyz.xenondevs.invui.gui.SlotElement
Package
Description
-
Uses of SlotElement in xyz.xenondevs.invui.gui
Modifier and TypeClassDescriptionstatic class
Links to a slot in aInventory
static class
Contains anItem
static class
Links to a slot in anotherGui
Modifier and TypeFieldDescriptionprotected List
<SlotElement> AbstractScrollGui.elements
The bakedSlotElements
, containing the content.protected List
<List<SlotElement>> AbstractPagedGui.pages
The baked pages of the gui, containing the content.Modifier and TypeMethodDescriptionSlotElement.getHoldingElement()
SlotElement.InventorySlotElement.getHoldingElement()
SlotElement.ItemSlotElement.getHoldingElement()
SlotElement.LinkedSlotElement.getHoldingElement()
@Nullable SlotElement
AbstractGui.getSlotElement
(int index) @Nullable SlotElement
AbstractGui.getSlotElement
(int x, int y) @Nullable SlotElement
Gui.getSlotElement
(int index) Gets theSlotElement
placed on that slot.@Nullable SlotElement
Gui.getSlotElement
(int x, int y) Gets theSlotElement
on these coordinates.@Nullable SlotElement @NotNull []
AbstractGui.getSlotElements()
@Nullable SlotElement @NotNull []
Gui.getSlotElements()
Gets allSlotElements
of thisGui
in an Array.Modifier and TypeMethodDescriptionprotected abstract List
<SlotElement> AbstractTabGui.getSlotElements
(int tab) Modifier and TypeMethodDescriptionAbstractGui.AbstractBuilder.addIngredient
(char key, @NotNull SlotElement element) Gui.Builder.addIngredient
(char key, @NotNull SlotElement element) Adds aSlotElement
ingredient under the given key.void
AbstractGui.addSlotElements
(@NotNull SlotElement... slotElements) void
Gui.addSlotElements
(@NotNull SlotElement... slotElements) AddsSlotElements
to theGui
.void
AbstractGui.setSlotElement
(int x, int y, SlotElement slotElement) void
AbstractGui.setSlotElement
(int index, SlotElement slotElement) void
Gui.setSlotElement
(int x, int y, @Nullable SlotElement slotElement) Sets theSlotElement
on these coordinates.void
Gui.setSlotElement
(int index, @Nullable SlotElement slotElement) Sets theSlotElement
on these coordinates.Modifier and TypeMethodDescriptionAbstractGui.AbstractBuilder.addIngredientElementSupplier
(char key, @NotNull Supplier<? extends SlotElement> elementSupplier) Gui.Builder.addIngredientElementSupplier
(char key, @NotNull Supplier<? extends SlotElement> elementSupplier) Adds aSupplier
ofSlotElements
ingredient under the given key.void
AbstractGui.playAnimation
(@NotNull Animation animation, @Nullable Predicate<@NotNull SlotElement> filter) void
Gui.playAnimation
(@NotNull Animation animation, @Nullable Predicate<@NotNull SlotElement> filter) Plays anAnimation
. -
Uses of SlotElement in xyz.xenondevs.invui.gui.structure
Modifier and TypeMethodDescriptionstatic void
Structure.addGlobalIngredient
(char key, @NotNull SlotElement element) Adds a globalSlotElement
ingredient under the given key.@NotNull Structure
Structure.addIngredient
(char key, @NotNull SlotElement element) Adds aInventory
ingredient under the given key.Modifier and TypeMethodDescriptionstatic void
Structure.addGlobalIngredientElementSupplier
(char key, @NotNull Supplier<? extends SlotElement> elementSupplier) Adds a globalSlotElement
Supplier
ingredient under the given key.@NotNull Structure
Structure.addIngredientElementSupplier
(char key, @NotNull Supplier<? extends SlotElement> elementSupplier) Adds aSlotElement
Supplier
ingredient under the given key. -
Uses of SlotElement in xyz.xenondevs.invui.window
Modifier and TypeMethodDescriptionprotected SlotElement
AbstractMergedWindow.getSlotElement
(int index) protected SlotElement
AbstractSingleWindow.getSlotElement
(int index) AbstractSplitWindow.getSlotElement
(int index) protected abstract SlotElement
AbstractWindow.getSlotElement
(int index) Gets theSlotElement
at the given index.Modifier and TypeMethodDescriptionprotected Map
<Integer, SlotElement> AbstractWindow.getInvSlotElements
(Inventory inventory) protected Map
<Integer, SlotElement> AbstractWindow.getItemSlotElements
(Item item) Modifier and TypeMethodDescriptionprotected void
AbstractDoubleWindow.redrawItem
(int index, SlotElement element, boolean setItem) protected void
AbstractWindow.redrawItem
(int index, SlotElement element, boolean setItem) Redraws theSlotElement
at the given index.