程序包 | 说明 |
---|---|
org.bukkit |
Bukkit的常用类.
|
org.bukkit.event.inventory | |
org.bukkit.inventory |
参与操作玩家物品栏和物品交互的类.
|
限定符和类型 | 方法和说明 |
---|---|
static Inventory |
Bukkit.createInventory(InventoryHolder owner,
InventoryType type)
Creates an empty inventory of the specified type.
|
Inventory |
Server.createInventory(InventoryHolder owner,
InventoryType type)
通过一个特定的类型来创建一个空的物品栏,如果这个类型是
CHEST ,那么这个物品栏
的大小为27格(即0-26的slot可用),每个物品栏类型拥有其默认的大小
原文:Creates an empty inventory of the specified type. |
static Inventory |
Bukkit.createInventory(InventoryHolder owner,
InventoryType type,
java.lang.String title)
Creates an empty inventory with the specified type and title.
|
Inventory |
Server.createInventory(InventoryHolder owner,
InventoryType type,
java.lang.String title)
通过一个特定的类型和标题来创建一个空的物品栏,如果这个类型是
CHEST ,那么这个物品栏
的大小为27格(即0-26的slot可用),每个物品栏类型拥有其默认的大小
原文:Creates an empty inventory with the specified type and title. |
限定符和类型 | 方法和说明 |
---|---|
static InventoryType |
InventoryType.valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static InventoryType[] |
InventoryType.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
限定符和类型 | 方法和说明 |
---|---|
InventoryType |
Inventory.getType()
返回这个物品栏的种类.
|
abstract InventoryType |
InventoryView.getType()
Determine the type of inventory involved in the transaction.
|
InventoryType |
InventoryView.Property.getType() |