Uses of Interface
org.bukkit.inventory.Inventory
Packages that use 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
Methods in io.papermc.paper.block that return InventoryModifier 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
Methods in org.bukkit that return InventoryModifier and TypeMethodDescriptionstatic @NotNull InventoryBukkit.createInventory(@Nullable InventoryHolder owner, int size) Creates an empty inventory of typeInventoryType.CHESTwith the specified size.static @NotNull InventoryBukkit.createInventory(@Nullable InventoryHolder owner, int size, @NotNull String title) Deprecated.static @NotNull InventoryBukkit.createInventory(@Nullable InventoryHolder owner, int size, @NotNull net.kyori.adventure.text.Component title) Creates an empty inventory of typeInventoryType.CHESTwith the specified size and title.static @NotNull InventoryBukkit.createInventory(@Nullable InventoryHolder owner, @NotNull InventoryType type) Creates an empty inventory with the specified type.static @NotNull InventoryBukkit.createInventory(@Nullable InventoryHolder owner, @NotNull InventoryType type, @NotNull String title) Deprecated.static @NotNull InventoryBukkit.createInventory(@Nullable InventoryHolder owner, @NotNull InventoryType type, @NotNull net.kyori.adventure.text.Component title) Creates an empty inventory with the specified type and title.@NotNull InventoryServer.createInventory(@Nullable InventoryHolder owner, int size) Creates an empty inventory of typeInventoryType.CHESTwith the specified size.@NotNull InventoryServer.createInventory(@Nullable InventoryHolder owner, int size, @NotNull String title) Deprecated.@NotNull InventoryServer.createInventory(@Nullable InventoryHolder owner, int size, @NotNull net.kyori.adventure.text.Component title) Creates an empty inventory of typeInventoryType.CHESTwith the specified size and title.@NotNull InventoryServer.createInventory(@Nullable InventoryHolder owner, @NotNull InventoryType type) Creates an empty inventory with the specified type.@NotNull InventoryServer.createInventory(@Nullable InventoryHolder owner, @NotNull InventoryType type, @NotNull String title) Deprecated.@NotNull InventoryServer.createInventory(@Nullable InventoryHolder owner, @NotNull InventoryType type, @NotNull net.kyori.adventure.text.Component title) Creates an empty inventory with the specified type and title. -
Uses of Inventory in org.bukkit.block
Methods in org.bukkit.block that return InventoryModifier and TypeMethodDescription@NotNull InventoryChest.getBlockInventory()Gets the inventory of the chest block represented by this block state.@NotNull InventoryDoubleChest.getInventory() -
Uses of Inventory in org.bukkit.entity
Methods in org.bukkit.entity that return InventoryModifier and TypeMethodDescriptionHumanEntity.getEnderChest()Get the player's EnderChest inventory@NotNull InventoryAbstractVillager.getInventory()Gets this villager's inventory.Methods in org.bukkit.entity with parameters of type InventoryModifier and TypeMethodDescriptionHumanEntity.openInventory(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
Methods in org.bukkit.event.inventory that return InventoryModifier and TypeMethodDescription@Nullable InventoryInventoryClickEvent.getClickedInventory()Gets the inventory corresponding to the clicked slot.@NotNull InventoryInventoryMoveItemEvent.getDestination()Gets the Inventory that the ItemStack is being put into@NotNull InventoryInventoryMoveItemEvent.getInitiator()Gets the Inventory that initiated the transfer.@Nullable InventoryHopperInventorySearchEvent.getInventory()Gets theInventorythat the Hopper will use for its source/attached Container.@NotNull InventoryInventoryEvent.getInventory()Gets the primary Inventory involved in this transaction@NotNull InventoryInventoryPickupItemEvent.getInventory()Gets the Inventory that picked up the item@NotNull InventoryInventoryMoveItemEvent.getSource()Gets the Inventory that the ItemStack is being taken fromMethods in org.bukkit.event.inventory with parameters of type InventoryModifier and TypeMethodDescriptionvoidHopperInventorySearchEvent.setInventory(@Nullable Inventory inventory) Set theInventorythat the Hopper will use for its source/attached Container.Constructors in org.bukkit.event.inventory with parameters of type InventoryModifierConstructorDescriptionHopperInventorySearchEvent(@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
Subinterfaces of Inventory in org.bukkit.inventoryModifier and TypeInterfaceDescriptioninterfaceAn interface to the inventory of anAbstractHorse.interfaceInterface to the inventory of an Anvil.interfaceinterfaceInterface to the inventory of a Beacon.interfaceInterface to the inventory of a Brewing Stand.interfaceInterface to the inventory of a Cartography table.interfaceInterface to the inventory of a chiseled bookshelf.interfaceInterface to the inventory of a Crafter.interfaceInterface to the crafting inventoriesinterfaceInterface to the inventory of a DecoratedPot.interfaceInterface to the inventory of a Double Chest.interfaceInterface to the inventory of an Enchantment Table.interfaceInterface to the inventory of a Furnace.interfaceInterface to the inventory of a Grindstone.interfaceAn interface to the inventory of a Horse.interfaceInterface to the inventory of a Jukebox.interfaceInterface to the inventory of a Lectern.interfaceAn interface to the inventory of aLlama.interfaceInterface to the inventory of a Loom.interfaceRepresents a trading inventory between a player and a merchant.interfaceInterface to the inventory of a Player, including the four armor slots and any extra slots.interfaceinterfaceinterfaceInterface to the inventory of a Smithing table.interfaceInterface to the inventory of a Stonecutter.Methods in org.bukkit.inventory that return InventoryModifier and TypeMethodDescription@NotNull InventoryInventoryView.getBottomInventory()Get the lower inventory involved in this transaction.@NotNull InventoryInventoryHolder.getInventory()Get the object's inventory.@Nullable InventoryInventoryView.getInventory(int rawSlot) Gets the inventory corresponding to the given raw slot ID.@NotNull InventoryDoubleChestInventory.getLeftSide()Get the left half of this double chest.@NotNull InventoryDoubleChestInventory.getRightSide()Get the right side of this double chest.@NotNull InventoryInventoryView.getTopInventory()Get the upper inventory involved in this transaction. -
Uses of Inventory in org.bukkit.loot
Methods in org.bukkit.loot with parameters of type InventoryModifier and TypeMethodDescriptionvoidLootTable.fillInventory(@NotNull Inventory inventory, @Nullable Random random, @NotNull LootContext context) Attempt to fill an inventory with this LootTable's loot.
Bukkit.createInventory(InventoryHolder, InventoryType, Component)