Uses of Class
xyz.xenondevs.invui.inventory.Inventory
Packages that use Inventory
Package
Description
-
Uses of Inventory in xyz.xenondevs.invui.gui
Methods in xyz.xenondevs.invui.gui that return InventoryMethods in xyz.xenondevs.invui.gui that return types with arguments of type InventoryModifier 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
.Methods in xyz.xenondevs.invui.gui with parameters of type InventoryModifier 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.Method parameters in xyz.xenondevs.invui.gui with type arguments of type InventoryModifier 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
.Constructors in xyz.xenondevs.invui.gui with parameters of type InventoryModifierConstructorDescriptionInventorySlotElement
(Inventory inventory, int slot) InventorySlotElement
(Inventory inventory, int slot, ItemProvider background) -
Uses of Inventory in xyz.xenondevs.invui.gui.structure
Methods in xyz.xenondevs.invui.gui.structure with parameters of type InventoryModifier 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.Constructors in xyz.xenondevs.invui.gui.structure with parameters of type InventoryModifierConstructorDescriptionInventorySlotElementSupplier
(@NotNull Inventory inventory) InventorySlotElementSupplier
(@NotNull Inventory inventory, @Nullable ItemProvider background) -
Uses of Inventory in xyz.xenondevs.invui.inventory
Subclasses of Inventory in xyz.xenondevs.invui.inventoryModifier and TypeClassDescriptionclass
AnInventory
which is composed of multiple otherInventories
.class
class
AInventory
which is backed by a bukkitInventory
.class
Constructors in xyz.xenondevs.invui.inventory with parameters of type InventoryModifierConstructorDescriptionCompositeInventory
(@NotNull Inventory first, @NotNull Inventory @NotNull ... other) Constructs a newCompositeInventory
.ObscuredInventory
(@NotNull Inventory inventory, @NotNull IntPredicate isObscured) Constructs a newObscuredInventory
.Constructor parameters in xyz.xenondevs.invui.inventory with type arguments of type InventoryModifierConstructorDescriptionCompositeInventory
(@NotNull Collection<@NotNull Inventory> inventories) Constructs a newCompositeInventory
. -
Uses of Inventory in xyz.xenondevs.invui.inventory.event
Constructors in xyz.xenondevs.invui.inventory.event with parameters of type InventoryModifierConstructorDescriptionItemPostUpdateEvent
(@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
Methods in xyz.xenondevs.invui.window that return types with arguments of type InventoryModifier and TypeMethodDescriptionAbstractMergedWindow.getContentInventories()
AbstractSingleWindow.getContentInventories()
AbstractSplitWindow.getContentInventories()
AbstractWindow.getContentInventories()
Gets the contentinventories
associated with thisWindow
.Methods in xyz.xenondevs.invui.window with parameters of type InventoryModifier and TypeMethodDescriptionprotected Map
<Integer, SlotElement> AbstractWindow.getInvSlotElements
(Inventory inventory) void
AbstractWindow.handleInventoryUpdate
(Inventory inventory)