程序包 | 说明 |
---|---|
org.bukkit |
Bukkit的常用类.
|
org.bukkit.block |
用于操作在
世界 内的三位像素(方块),包括一些特定的状态. |
org.bukkit.entity |
为在
世界 内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等. |
org.bukkit.event.inventory | |
org.bukkit.inventory |
参与操作玩家物品栏和物品交互的类.
|
限定符和类型 | 方法和说明 |
---|---|
static Inventory |
Bukkit.createInventory(InventoryHolder owner,
int size)
Creates an empty inventory of type
InventoryType.CHEST with the
specified size. |
Inventory |
Server.createInventory(InventoryHolder owner,
int size)
使用
InventoryType.CHEST 创建一个给定大小的Inventory
原文:Creates an empty inventory of type InventoryType.CHEST with the
specified size. |
static Inventory |
Bukkit.createInventory(InventoryHolder owner,
int size,
java.lang.String title)
Creates an empty inventory of type
InventoryType.CHEST with the
specified size and title. |
Inventory |
Server.createInventory(InventoryHolder owner,
int size,
java.lang.String title)
通过一个特定的大小和标题使用
InventoryType.CHEST 来创建一个空的物品栏
原文: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 of the specified type.
|
Inventory |
Server.createInventory(InventoryHolder owner,
InventoryType type)
通过一个特定的类型来创建一个空的物品栏,如果这个类型是
InventoryType.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)
通过一个特定的类型和标题来创建一个空的物品栏,如果这个类型是
InventoryType.CHEST ,那么这个物品栏
的大小为27格(即0-26的slot可用),每个物品栏类型拥有其默认的大小
原文:Creates an empty inventory with the specified type and title. |
限定符和类型 | 方法和说明 |
---|---|
Inventory |
Chest.getBlockInventory()
返回箱子类型的物品栏.
|
Inventory |
Container.getInventory()
Gets the inventory of the block represented by this block state.
|
Inventory |
DoubleChest.getInventory() |
Inventory |
Container.getSnapshotInventory()
Gets the captured inventory snapshot of this container.
|
限定符和类型 | 方法和说明 |
---|---|
Inventory |
HumanEntity.getEnderChest()
获取玩家的末影箱物品栏.
|
Inventory |
Villager.getInventory()
Gets this villager's inventory.
|
限定符和类型 | 方法和说明 |
---|---|
InventoryView |
HumanEntity.openInventory(Inventory inventory)
打开一个物品栏, 窗口顶部为你指定的物品栏, 底部为玩家物品栏(背包).
|
限定符和类型 | 方法和说明 |
---|---|
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()
获取此事件涉及的主要物品栏.
|
Inventory |
InventoryPickupItemEvent.getInventory()
获取捡起这个物品的背包.
|
Inventory |
InventoryMoveItemEvent.getSource()
Gets the Inventory that the ItemStack is being taken from
|
构造器和说明 |
---|
InventoryMoveItemEvent(Inventory sourceInventory,
ItemStack itemStack,
Inventory destinationInventory,
boolean didSourceInitiate) |
InventoryPickupItemEvent(Inventory inventory,
Item item) |
限定符和类型 | 接口和说明 |
---|---|
interface |
AbstractHorseInventory
马(抽象概念的)(
AbstractHorse )的物品栏界面接口. |
interface |
AnvilInventory
铁毡的背包界面接口
|
interface |
BeaconInventory
信标的背包界面接口
|
interface |
BrewerInventory
酿造台的用户界面接口.
|
interface |
CraftingInventory
合成台的用户界面接口.
|
interface |
DoubleChestInventory
大箱子的用户界面接口.
|
interface |
EnchantingInventory
附魔界面接口
|
interface |
FurnaceInventory
熔炉用户界面接口
|
interface |
HorseInventory
马的界面接口.
|
interface |
LlamaInventory
羊驼的用户界面接口
|
interface |
MerchantInventory
代表玩家和商人之间的用户界面接口.
|
interface |
PlayerInventory
玩家背包.
|
限定符和类型 | 方法和说明 |
---|---|
abstract Inventory |
InventoryView.getBottomInventory()
Get the lower inventory involved in this transaction.
|
Inventory |
InventoryHolder.getInventory()
获取该对象的用户界面项目.
|
Inventory |
DoubleChestInventory.getLeftSide()
获取这个大箱子的左半部分界面.
|
Inventory |
DoubleChestInventory.getRightSide()
获取这个大箱子的右半部分界面
|
abstract Inventory |
InventoryView.getTopInventory()
Get the upper inventory involved in this transaction.
|