Uses of Class
xyz.xenondevs.invui.inventory.Inventory
Package
Description
-
Uses of Inventory in xyz.xenondevs.invui.gui
Modifier and TypeMethodDescriptionAbstractGui.getAllInventories
(Inventory... ignored) Gets allInventories
that are used in thisAbstractGui
.AbstractGui.getAllInventorySlots
(Inventory... ignored) Gets allInventories
and their slots that are used in thisAbstractGui
.static @NotNull PagedGui.Builder
<@NotNull Inventory> PagedGui.inventories()
PagedGui.inventories
(@NotNull Consumer<@NotNull PagedGui.Builder<@NotNull Inventory>> consumer) static @NotNull ScrollGui.Builder
<@NotNull Inventory> ScrollGui.inventories()
ScrollGui.inventories
(@NotNull Consumer<@NotNull ScrollGui.Builder<@NotNull Inventory>> consumer) Creates a newScrollGui
that usesVirtualInventories
as content after configuring aGui Builder
using the givenConsumer
.PagedGui.ofInventories
(int width, int height, @NotNull List<@NotNull Inventory> inventories, int... contentListSlots) Creates a newPagedGui
.PagedGui.ofInventories
(@NotNull Structure structure, @NotNull List<@NotNull Inventory> inventories) Creates a newPagedGui
.ScrollGui.ofInventories
(int width, int height, @NotNull List<@NotNull Inventory> inventories, int... contentListSlots) Creates a newScrollGui
.ScrollGui.ofInventories
(@NotNull Structure structure, @NotNull List<@NotNull Inventory> inventories) Creates a newScrollGui
.Modifier and TypeMethodDescriptionAbstractGui.AbstractBuilder.addIngredient
(char key, @NotNull Inventory inventory) AbstractGui.AbstractBuilder.addIngredient
(char key, @NotNull Inventory inventory, @Nullable ItemProvider background) Gui.Builder.addIngredient
(char key, @NotNull Inventory inventory) Adds anInventory
ingredient under the given key.Gui.Builder.addIngredient
(char key, @NotNull Inventory inventory, @Nullable ItemProvider background) Adds anInventory
ingredient under the given key.void
AbstractGui.fillRectangle
(int x, int y, int width, @NotNull Inventory inventory, boolean replaceExisting) void
AbstractGui.fillRectangle
(int x, int y, int width, @NotNull Inventory inventory, @Nullable ItemProvider background, boolean replaceExisting) void
Gui.fillRectangle
(int x, int y, int width, @NotNull Inventory inventory, boolean replaceExisting) void
Gui.fillRectangle
(int x, int y, int width, @NotNull Inventory inventory, @Nullable ItemProvider background, boolean replaceExisting) AbstractGui.getAllInventories
(Inventory... ignored) Gets allInventories
that are used in thisAbstractGui
.AbstractGui.getAllInventorySlots
(Inventory... ignored) Gets allInventories
and their slots that are used in thisAbstractGui
.protected void
AbstractGui.handleInvDrop
(boolean ctrl, org.bukkit.event.inventory.InventoryClickEvent event, Inventory inventory, int slot, org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack clicked) Handles dropping items from a slot in anSlotElement.InventorySlotElement
.protected void
AbstractGui.handleInvItemShift
(org.bukkit.event.inventory.InventoryClickEvent event, Inventory inventory, int slot, org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack clicked) Handles a shift click on anSlotElement.InventorySlotElement
.protected void
AbstractGui.handleInvLeftClick
(org.bukkit.event.inventory.InventoryClickEvent event, Inventory inventory, int slot, org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack clicked, org.bukkit.inventory.ItemStack cursor) Handles a left click on anSlotElement.InventorySlotElement
.protected void
AbstractGui.handleInvMiddleClick
(org.bukkit.event.inventory.InventoryClickEvent event, Inventory inventory, int slot, org.bukkit.entity.Player player) Handles a middle click on anSlotElement.InventorySlotElement
.protected void
AbstractGui.handleInvNumberKey
(org.bukkit.event.inventory.InventoryClickEvent event, Inventory inventory, int slot, org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack clicked) Handles a number key press on anSlotElement.InventorySlotElement
.protected void
AbstractGui.handleInvOffHandKey
(org.bukkit.event.inventory.InventoryClickEvent event, Inventory inventory, int slot, org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack clicked) Handles an off-hand key press on anSlotElement.InventorySlotElement
.protected void
AbstractGui.handleInvRightClick
(org.bukkit.event.inventory.InventoryClickEvent event, Inventory inventory, int slot, org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack clicked, org.bukkit.inventory.ItemStack cursor) Handles a right click on anSlotElement.InventorySlotElement
.protected int
AbstractGui.putIntoFirstInventory
(UpdateReason updateReason, org.bukkit.inventory.ItemStack itemStack, Inventory... ignored) Puts anItemStack
into the firstInventory
that accepts it.Modifier and TypeMethodDescriptionPagedGui.inventories
(@NotNull Consumer<@NotNull PagedGui.Builder<@NotNull Inventory>> consumer) ScrollGui.inventories
(@NotNull Consumer<@NotNull ScrollGui.Builder<@NotNull Inventory>> consumer) Creates a newScrollGui
that usesVirtualInventories
as content after configuring aGui Builder
using the givenConsumer
.PagedGui.ofInventories
(int width, int height, @NotNull List<@NotNull Inventory> inventories, int... contentListSlots) Creates a newPagedGui
.PagedGui.ofInventories
(@NotNull Structure structure, @NotNull List<@NotNull Inventory> inventories) Creates a newPagedGui
.ScrollGui.ofInventories
(int width, int height, @NotNull List<@NotNull Inventory> inventories, int... contentListSlots) Creates a newScrollGui
.ScrollGui.ofInventories
(@NotNull Structure structure, @NotNull List<@NotNull Inventory> inventories) Creates a newScrollGui
.ModifierConstructorDescriptionInventorySlotElement
(Inventory inventory, int slot) InventorySlotElement
(Inventory inventory, int slot, ItemProvider background) -
Uses of Inventory in xyz.xenondevs.invui.gui.structure
Modifier and TypeMethodDescription@NotNull Structure
Structure.addIngredient
(char key, @NotNull Inventory inventory) Adds aInventory
ingredient under the given key.@NotNull Structure
Structure.addIngredient
(char key, @NotNull Inventory inventory, @Nullable ItemProvider background) Adds aInventory
ingredient under the given key.ModifierConstructorDescriptionInventorySlotElementSupplier
(@NotNull Inventory inventory) InventorySlotElementSupplier
(@NotNull Inventory inventory, @Nullable ItemProvider background) -
Uses of Inventory in xyz.xenondevs.invui.inventory
Modifier and TypeClassDescriptionclass
AnInventory
which is composed of multiple otherInventories
.class
class
AInventory
which is backed by a bukkitInventory
.class
ModifierConstructorDescriptionCompositeInventory
(@NotNull Inventory first, @NotNull Inventory @NotNull ... other) Constructs a newCompositeInventory
.ObscuredInventory
(@NotNull Inventory inventory, @NotNull IntPredicate isObscured) Constructs a newObscuredInventory
.ModifierConstructorDescriptionCompositeInventory
(@NotNull Collection<@NotNull Inventory> inventories) Constructs a newCompositeInventory
. -
Uses of Inventory in xyz.xenondevs.invui.inventory.event
ModifierConstructorDescriptionItemPostUpdateEvent
(@NotNull Inventory inventory, int slot, @Nullable UpdateReason updateReason, @Nullable org.bukkit.inventory.ItemStack previousItem, @Nullable org.bukkit.inventory.ItemStack newItem) Creates a newItemPreUpdateEvent
.ItemPreUpdateEvent
(@NotNull Inventory inventory, int slot, @Nullable UpdateReason updateReason, @Nullable org.bukkit.inventory.ItemStack previousItem, @Nullable org.bukkit.inventory.ItemStack newItem) Creates a newItemPreUpdateEvent
. -
Uses of Inventory in xyz.xenondevs.invui.window
Modifier and TypeMethodDescriptionAbstractMergedWindow.getContentInventories()
AbstractSingleWindow.getContentInventories()
AbstractSplitWindow.getContentInventories()
AbstractWindow.getContentInventories()
Gets the contentinventories
associated with thisWindow
.Modifier and TypeMethodDescriptionprotected Map
<Integer, SlotElement> AbstractWindow.getInvSlotElements
(Inventory inventory) void
AbstractWindow.handleInventoryUpdate
(Inventory inventory)