程序包 | 说明 |
---|---|
org.bukkit.event.block | |
org.bukkit.event.player | |
org.bukkit.inventory |
参与操作玩家物品栏和物品交互的类.
|
限定符和类型 | 字段和说明 |
---|---|
protected EquipmentSlot |
BlockPlaceEvent.hand |
限定符和类型 | 方法和说明 |
---|---|
EquipmentSlot |
BlockPlaceEvent.getHand()
获取放置这个方块的手.
|
构造器和说明 |
---|
BlockPlaceEvent(Block placedBlock,
BlockState replacedBlockState,
Block placedAgainst,
ItemStack itemInHand,
Player thePlayer,
boolean canBuild,
EquipmentSlot hand) |
限定符和类型 | 方法和说明 |
---|---|
EquipmentSlot |
PlayerInteractEntityEvent.getHand()
用于执行这次交互的手.
|
EquipmentSlot |
PlayerInteractEvent.getHand()
获取用来执行本次交互的手, 但当
Action.PHYSICAL 时可能为空
译注:也就是 PlayerInteractEvent.getAction() 为 Action.PHYSICAL 时
The hand used to perform this interaction. |
EquipmentSlot |
PlayerArmorStandManipulateEvent.getSlot()
Returns the raw item slot of the armor stand in this event.
|
构造器和说明 |
---|
PlayerArmorStandManipulateEvent(Player who,
ArmorStand clickedEntity,
ItemStack playerItem,
ItemStack armorStandItem,
EquipmentSlot slot) |
PlayerInteractAtEntityEvent(Player who,
Entity clickedEntity,
Vector position,
EquipmentSlot hand) |
PlayerInteractEntityEvent(Player who,
Entity clickedEntity,
EquipmentSlot hand) |
PlayerInteractEvent(Player who,
Action action,
ItemStack item,
Block clickedBlock,
BlockFace clickedFace,
EquipmentSlot hand) |
限定符和类型 | 方法和说明 |
---|---|
static EquipmentSlot |
EquipmentSlot.valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static EquipmentSlot[] |
EquipmentSlot.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|