Package | Description |
---|---|
org.bukkit |
The root package of the Bukkit API, contains generalized API classes.
|
org.bukkit.event.inventory | |
org.bukkit.inventory |
Classes involved in manipulating player inventories and item interactions.
|
Modifier and Type | Method and Description |
---|---|
static @NotNull Inventory |
Bukkit.createInventory(@Nullable InventoryHolder owner,
@NotNull InventoryType type)
Creates an empty inventory with the specified type.
|
@NotNull Inventory |
Server.createInventory(@Nullable InventoryHolder owner,
@NotNull InventoryType type)
Creates an empty inventory with the specified type.
|
static @NotNull Inventory |
Bukkit.createInventory(@Nullable InventoryHolder owner,
@NotNull InventoryType type,
net.kyori.adventure.text.Component title)
Creates an empty inventory with the specified type and title.
|
@NotNull Inventory |
Server.createInventory(@Nullable InventoryHolder owner,
@NotNull InventoryType type,
net.kyori.adventure.text.Component title)
Creates an empty inventory with the specified type and title.
|
static @NotNull Inventory |
Bukkit.createInventory(@Nullable InventoryHolder owner,
@NotNull InventoryType type,
@NotNull String title)
Deprecated.
|
@NotNull Inventory |
Server.createInventory(@Nullable InventoryHolder owner,
@NotNull InventoryType type,
@NotNull String title)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static InventoryType |
InventoryType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InventoryType[] |
InventoryType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
@NotNull InventoryType |
Inventory.getType()
Returns what type of inventory this is.
|
abstract @NotNull InventoryType |
InventoryView.getType()
Determine the type of inventory involved in the transaction.
|
@NotNull InventoryType |
InventoryView.Property.getType() |
Copyright © 2021. All rights reserved.