类 PlayerArmorStandManipulateEvent

所有已实现的接口:
Cancellable

public class PlayerArmorStandManipulateEvent extends PlayerInteractEntityEvent
Called when a player interacts with an armor stand and will either swap, retrieve or place an item.
  • 构造器详细资料

  • 方法详细资料

    • getPlayerItem

      public ItemStack 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

      public ItemStack 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

      public EquipmentSlot 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

      public ArmorStand getRightClicked()
      从类复制的说明: PlayerInteractEntityEvent
      获取被玩家点击的实体.

      原文:Gets the entity that was rightclicked by the player.

      覆盖:
      getRightClicked 在类中 PlayerInteractEntityEvent
      返回:
      被玩家点击的实体
    • getHandlers

      public HandlerList getHandlers()
      覆盖:
      getHandlers 在类中 PlayerInteractEntityEvent
    • getHandlerList

      public static HandlerList getHandlerList()