枚举的使用
org.bukkit.inventory.EquipmentSlot
程序包
说明
参与操作玩家物品栏和物品交互的类.
-
org.bukkit.event.block中EquipmentSlot的使用
限定符构造器说明BlockPlaceEvent
(Block placedBlock, BlockState replacedBlockState, Block placedAgainst, ItemStack itemInHand, Player thePlayer, boolean canBuild, EquipmentSlot hand) -
org.bukkit.event.player中EquipmentSlot的使用
修饰符和类型方法说明PlayerInteractEntityEvent.getHand()
用于执行这次交互的手.PlayerInteractEvent.getHand()
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) -
org.bukkit.inventory中EquipmentSlot的使用
修饰符和类型方法说明static EquipmentSlot
返回带有指定名称的该类型的枚举常量。static EquipmentSlot[]
EquipmentSlot.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。