Package | Description |
---|---|
org.bukkit |
More generalized classes in the API.
|
org.bukkit.block |
Classes used to manipulate the voxels in a
world ,
including special states. |
org.bukkit.entity |
Interfaces for non-voxel objects that can exist in a
world , including all players, monsters, projectiles, etc. |
org.bukkit.event.inventory | |
org.bukkit.inventory |
Classes involved in manipulating player inventories and item interactions.
|
org.bukkit.loot |
Classes relevant to loot table manipulation and generation.
|
Modifier and Type | Method | Description |
---|---|---|
static Inventory |
Bukkit.createInventory(InventoryHolder owner,
int size) |
Creates an empty inventory of type
InventoryType.CHEST with the
specified size. |
static Inventory |
Bukkit.createInventory(InventoryHolder owner,
int size,
String title) |
Creates an empty inventory of type
InventoryType.CHEST with the
specified size and title. |
static Inventory |
Bukkit.createInventory(InventoryHolder owner,
InventoryType type) |
Creates an empty inventory with the specified type.
|
static Inventory |
Bukkit.createInventory(InventoryHolder owner,
InventoryType type,
String title) |
Creates an empty inventory with the specified type and title.
|
Inventory |
Server.createInventory(InventoryHolder owner,
int size) |
Creates an empty inventory of type
InventoryType.CHEST with the
specified size. |
Inventory |
Server.createInventory(InventoryHolder owner,
int size,
String title) |
Creates an empty inventory of type
InventoryType.CHEST with the
specified size and title. |
Inventory |
Server.createInventory(InventoryHolder owner,
InventoryType type) |
Creates an empty inventory with the specified type.
|
Inventory |
Server.createInventory(InventoryHolder owner,
InventoryType type,
String title) |
Creates an empty inventory with the specified type and title.
|
Modifier and Type | Method | Description |
---|---|---|
Inventory |
Chest.getBlockInventory() |
Gets the inventory of the chest block represented by this block state.
|
Inventory |
Container.getInventory() |
Gets the inventory of the block represented by this block state.
|
Inventory |
DoubleChest.getInventory() |
|
Inventory |
Lectern.getInventory() |
|
Inventory |
Container.getSnapshotInventory() |
Gets the captured inventory snapshot of this container.
|
Inventory |
Lectern.getSnapshotInventory() |
Modifier and Type | Method | Description |
---|---|---|
Inventory |
HumanEntity.getEnderChest() |
Get the player's EnderChest inventory
|
Inventory |
AbstractVillager.getInventory() |
Gets this villager's inventory.
|
Modifier and Type | Method | Description |
---|---|---|
InventoryView |
HumanEntity.openInventory(Inventory inventory) |
Opens an inventory window with the specified inventory on the top and
the player's inventory on the bottom.
|
Modifier and Type | Method | Description |
---|---|---|
Inventory |
InventoryClickEvent.getClickedInventory() |
Gets the inventory corresponding to the clicked slot.
|
Inventory |
InventoryMoveItemEvent.getDestination() |
Gets the Inventory that the ItemStack is being put into
|
Inventory |
InventoryMoveItemEvent.getInitiator() |
Gets the Inventory that initiated the transfer.
|
Inventory |
InventoryEvent.getInventory() |
Gets the primary Inventory involved in this transaction
|
Inventory |
InventoryPickupItemEvent.getInventory() |
Gets the Inventory that picked up the item
|
Inventory |
InventoryMoveItemEvent.getSource() |
Gets the Inventory that the ItemStack is being taken from
|
Constructor | Description |
---|---|
InventoryMoveItemEvent(Inventory sourceInventory,
ItemStack itemStack,
Inventory destinationInventory,
boolean didSourceInitiate) |
|
InventoryPickupItemEvent(Inventory inventory,
Item item) |
Modifier and Type | Interface | Description |
---|---|---|
interface |
AbstractHorseInventory |
An interface to the inventory of an
AbstractHorse . |
interface |
AnvilInventory |
Interface to the inventory of an Anvil.
|
interface |
BeaconInventory |
Interface to the inventory of a Beacon.
|
interface |
BrewerInventory |
Interface to the inventory of a Brewing Stand.
|
interface |
CartographyInventory |
Interface to the inventory of a Cartography table.
|
interface |
CraftingInventory |
Interface to the crafting inventories
|
interface |
DoubleChestInventory |
Interface to the inventory of a Double Chest.
|
interface |
EnchantingInventory |
Interface to the inventory of an Enchantment Table.
|
interface |
FurnaceInventory |
Interface to the inventory of a Furnace.
|
interface |
GrindstoneInventory |
Interface to the inventory of a Grindstone.
|
interface |
HorseInventory |
An interface to the inventory of a Horse.
|
interface |
LecternInventory |
Interface to the inventory of a Lectern.
|
interface |
LlamaInventory |
An interface to the inventory of a
Llama . |
interface |
LoomInventory |
Interface to the inventory of a Loom.
|
interface |
MerchantInventory |
Represents a trading inventory between a player and a merchant.
|
interface |
PlayerInventory |
Interface to the inventory of a Player, including the four armor slots and any extra slots.
|
interface |
StonecutterInventory |
Interface to the inventory of a Stonecutter.
|
Modifier and Type | Method | Description |
---|---|---|
abstract Inventory |
InventoryView.getBottomInventory() |
Get the lower inventory involved in this transaction.
|
Inventory |
InventoryHolder.getInventory() |
Get the object's inventory.
|
Inventory |
InventoryView.getInventory(int rawSlot) |
Gets the inventory corresponding to the given raw slot ID.
|
Inventory |
DoubleChestInventory.getLeftSide() |
Get the left half of this double chest.
|
Inventory |
DoubleChestInventory.getRightSide() |
Get the right side of this double chest.
|
abstract Inventory |
InventoryView.getTopInventory() |
Get the upper inventory involved in this transaction.
|
Modifier and Type | Method | Description |
---|---|---|
void |
LootTable.fillInventory(Inventory inventory,
Random random,
LootContext context) |
Attempt to fill an inventory with this LootTable's loot.
|
Copyright © 2020. All rights reserved.