Uses of Interface
org.bukkit.inventory.Inventory
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Classes used to manipulate the voxels in a
world
,
including special states.Interfaces for non-voxel objects that can exist in a
world
, including all players, monsters, projectiles, etc.Classes involved in manipulating player inventories and item interactions.
Classes relevant to loot table manipulation and generation.
-
Uses of Inventory in io.papermc.paper.block
Modifier and TypeMethodDescriptionTileStateInventoryHolder.getInventory()
Gets the inventory of the block represented by this block state.TileStateInventoryHolder.getSnapshotInventory()
Gets the captured inventory snapshot of this container. -
Uses of Inventory in org.bukkit
Modifier and TypeMethodDescriptionBukkit.createInventory
(@Nullable InventoryHolder owner, int size) Creates an empty inventory of typeInventoryType.CHEST
with the specified size.Bukkit.createInventory
(@Nullable InventoryHolder owner, int size, @NotNull String title) Deprecated.Bukkit.createInventory
(@Nullable InventoryHolder owner, int size, @NotNull Component title) Creates an empty inventory of typeInventoryType.CHEST
with the specified size and title.Bukkit.createInventory
(@Nullable InventoryHolder owner, @NotNull InventoryType type) Creates an empty inventory with the specified type.Bukkit.createInventory
(@Nullable InventoryHolder owner, @NotNull InventoryType type, @NotNull String title) Deprecated.Bukkit.createInventory
(@Nullable InventoryHolder owner, @NotNull InventoryType type, @NotNull Component title) Creates an empty inventory with the specified type and title.Server.createInventory
(@Nullable InventoryHolder owner, int size) Creates an empty inventory of typeInventoryType.CHEST
with the specified size.Server.createInventory
(@Nullable InventoryHolder owner, int size, @NotNull String title) Deprecated.Server.createInventory
(@Nullable InventoryHolder owner, int size, @NotNull Component title) Creates an empty inventory of typeInventoryType.CHEST
with the specified size and title.Server.createInventory
(@Nullable InventoryHolder owner, @NotNull InventoryType type) Creates an empty inventory with the specified type.Server.createInventory
(@Nullable InventoryHolder owner, @NotNull InventoryType type, @NotNull String title) Deprecated.Server.createInventory
(@Nullable InventoryHolder owner, @NotNull InventoryType type, @NotNull Component title) Creates an empty inventory with the specified type and title. -
Uses of Inventory in org.bukkit.block
Modifier and TypeMethodDescriptionChest.getBlockInventory()
Gets the inventory of the chest block represented by this block state.DoubleChest.getInventory()
-
Uses of Inventory in org.bukkit.entity
Modifier and TypeMethodDescriptionHumanEntity.getEnderChest()
Get the player's EnderChest inventoryAbstractVillager.getInventory()
Gets this villager's inventory.Modifier and TypeMethodDescriptionHumanEntity.openInventory
(@NotNull Inventory inventory) Opens an inventory window with the specified inventory on the top and the player's inventory on the bottom. -
Uses of Inventory in org.bukkit.event.inventory
Modifier and TypeMethodDescriptionInventoryClickEvent.getClickedInventory()
Gets the inventory corresponding to the clicked slot.InventoryMoveItemEvent.getDestination()
Gets the Inventory that the ItemStack is being put intoInventoryMoveItemEvent.getInitiator()
Gets the Inventory that initiated the transfer.HopperInventorySearchEvent.getInventory()
Gets theInventory
that the Hopper will use for its source/attached Container.InventoryEvent.getInventory()
Gets the primary Inventory involved in this transactionInventoryPickupItemEvent.getInventory()
Gets the Inventory that picked up the itemInventoryMoveItemEvent.getSource()
Gets the Inventory that the ItemStack is being taken fromModifier and TypeMethodDescriptionvoid
HopperInventorySearchEvent.setInventory
(@Nullable Inventory inventory) Set theInventory
that the Hopper will use for its source/attached Container.ModifierConstructorDescriptionHopperInventorySearchEvent
(@Nullable Inventory inventory, @NotNull HopperInventorySearchEvent.ContainerType containerType, @NotNull Block hopper, @NotNull Block searchBlock) InventoryMoveItemEvent
(@NotNull Inventory sourceInventory, @NotNull ItemStack itemStack, @NotNull Inventory destinationInventory, boolean didSourceInitiate) InventoryPickupItemEvent
(@NotNull Inventory inventory, @NotNull Item item) -
Uses of Inventory in org.bukkit.inventory
Modifier and TypeInterfaceDescriptioninterface
An interface to the inventory of anAbstractHorse
.interface
Interface to the inventory of an Anvil.interface
interface
Interface to the inventory of a Beacon.interface
Interface to the inventory of a Brewing Stand.interface
Interface to the inventory of a Cartography table.interface
Interface to the inventory of a chiseled bookshelf.interface
Interface to the inventory of a Crafter.interface
Interface to the crafting inventoriesinterface
Interface to the inventory of a DecoratedPot.interface
Interface to the inventory of a Double Chest.interface
Interface to the inventory of an Enchantment Table.interface
Interface to the inventory of a Furnace.interface
Interface to the inventory of a Grindstone.interface
An interface to the inventory of a Horse.interface
Interface to the inventory of a Jukebox.interface
Interface to the inventory of a Lectern.interface
An interface to the inventory of aLlama
.interface
Interface to the inventory of a Loom.interface
Represents a trading inventory between a player and a merchant.interface
Interface to the inventory of a Player, including the four armor slots and any extra slots.interface
interface
Interface to the inventory of a Smithing table.interface
Interface to the inventory of a Stonecutter.Modifier and TypeMethodDescriptionInventoryView.getBottomInventory()
Get the lower inventory involved in this transaction.InventoryHolder.getInventory()
Get the object's inventory.InventoryView.getInventory
(int rawSlot) Gets the inventory corresponding to the given raw slot ID.DoubleChestInventory.getLeftSide()
Get the left half of this double chest.DoubleChestInventory.getRightSide()
Get the right side of this double chest.InventoryView.getTopInventory()
Get the upper inventory involved in this transaction. -
Uses of Inventory in org.bukkit.loot
Modifier and TypeMethodDescriptionvoid
LootTable.fillInventory
(@NotNull Inventory inventory, @Nullable Random random, @NotNull LootContext context) Attempt to fill an inventory with this LootTable's loot.
Bukkit.createInventory(InventoryHolder, InventoryType, net.kyori.adventure.text.Component)