Cancellable
public class PlayerArmorStandManipulateEvent extends PlayerInteractEntityEvent
Event.Result
player
clickedEntity
Constructor | Description |
---|---|
PlayerArmorStandManipulateEvent(Player who,
ArmorStand clickedEntity,
ItemStack playerItem,
ItemStack armorStandItem,
EquipmentSlot slot) |
Modifier and Type | Method | Description |
---|---|---|
ItemStack |
getArmorStandItem() |
Returns the item held by the armor stand.
|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
ItemStack |
getPlayerItem() |
Returns the item held by the player.
|
ArmorStand |
getRightClicked() |
Gets the entity that was rightclicked by the player.
|
EquipmentSlot |
getSlot() |
Returns the raw item slot of the armor stand in this event.
|
getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPlayer
getHand, isCancelled, setCancelled
public PlayerArmorStandManipulateEvent(Player who, ArmorStand clickedEntity, ItemStack playerItem, ItemStack armorStandItem, EquipmentSlot slot)
public ItemStack getPlayerItem()
public ItemStack getArmorStandItem()
public EquipmentSlot getSlot()
public ArmorStand getRightClicked()
PlayerInteractEntityEvent
getRightClicked
in class PlayerInteractEntityEvent
public HandlerList getHandlers()
getHandlers
in class PlayerInteractEntityEvent
public static HandlerList getHandlerList()
Copyright © 2018. All rights reserved.