类 PlayerArmorStandManipulateEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerInteractEntityEvent
org.bukkit.event.player.PlayerArmorStandManipulateEvent
- 所有已实现的接口:
Cancellable
Called when a player interacts with an armor stand and will either swap, retrieve or place an item.
-
嵌套类概要
从类继承的嵌套类/接口 org.bukkit.event.Event
Event.Result
-
字段概要
从类继承的字段 org.bukkit.event.player.PlayerInteractEntityEvent
clickedEntity
从类继承的字段 org.bukkit.event.player.PlayerEvent
player
-
构造器概要
构造器说明PlayerArmorStandManipulateEvent
(Player who, ArmorStand clickedEntity, ItemStack playerItem, ItemStack armorStandItem, EquipmentSlot slot) -
方法概要
修饰符和类型方法说明Returns the item held by the armor stand.static HandlerList
Returns the item held by the player.获取被玩家点击的实体.getSlot()
Returns the raw item slot of the armor stand in this event.从类继承的方法 org.bukkit.event.player.PlayerInteractEntityEvent
getHand, isCancelled, setCancelled
从类继承的方法 org.bukkit.event.player.PlayerEvent
getPlayer
从类继承的方法 org.bukkit.event.Event
getEventName, isAsynchronous
-
构造器详细资料
-
PlayerArmorStandManipulateEvent
public PlayerArmorStandManipulateEvent(Player who, ArmorStand clickedEntity, ItemStack playerItem, ItemStack armorStandItem, EquipmentSlot slot)
-
-
方法详细资料
-
getPlayerItem
Returns the item held by the player. If this Item is null and the armor stand Item is also null, there will be no transaction between the player and the armor stand. If the Player's item is null, but the armor stand item is not then the player will obtain the armor stand item. In the case that the Player's item is not null, but the armor stand item is null, the players item will be placed on the armor stand. If both items are not null, the items will be swapped. In the case that the event is cancelled the original items will remain the same.- 返回:
- the item held by the player.
-
getArmorStandItem
Returns the item held by the armor stand. If this Item is null and the player's Item is also null, there will be no transaction between the player and the armor stand. If the Player's item is null, but the armor stand item is not then the player will obtain the armor stand item. In the case that the Player's item is not null, but the armor stand item is null, the players item will be placed on the armor stand. If both items are not null, the items will be swapped. In the case that the event is cancelled the original items will remain the same.- 返回:
- the item held by the armor stand.
-
getSlot
Returns the raw item slot of the armor stand in this event.- 返回:
- the index of the item obtained or placed of the armor stand.
-
getRightClicked
从类复制的说明:PlayerInteractEntityEvent
获取被玩家点击的实体.原文:Gets the entity that was rightclicked by the player.
- 覆盖:
getRightClicked
在类中PlayerInteractEntityEvent
- 返回:
- 被玩家点击的实体
-
getHandlers
- 覆盖:
getHandlers
在类中PlayerInteractEntityEvent
-
getHandlerList
-