public class PlayerArmorStandManipulateEvent extends PlayerInteractEntityEvent
Event.Result
clickedEntity
player
Constructor and Description |
---|
PlayerArmorStandManipulateEvent(@NotNull Player who,
@NotNull ArmorStand clickedEntity,
@NotNull ItemStack playerItem,
@NotNull ItemStack armorStandItem,
@NotNull EquipmentSlot slot) |
Modifier and Type | Method and Description |
---|---|
@NotNull ItemStack |
getArmorStandItem()
Returns the item held by the armor stand.
|
static @NotNull HandlerList |
getHandlerList() |
@NotNull HandlerList |
getHandlers() |
@NotNull ItemStack |
getPlayerItem()
Returns the item held by the player.
|
@NotNull ArmorStand |
getRightClicked()
Gets the entity that was right-clicked by the player.
|
@NotNull EquipmentSlot |
getSlot()
Returns the raw item slot of the armor stand in this event.
|
getHand, isCancelled, setCancelled
getPlayer
callEvent, getEventName, isAsynchronous
@NotNull public @NotNull ItemStack getPlayerItem()
@NotNull public @NotNull ItemStack getArmorStandItem()
@NotNull public @NotNull EquipmentSlot getSlot()
@NotNull public @NotNull ArmorStand getRightClicked()
PlayerInteractEntityEvent
getRightClicked
in class PlayerInteractEntityEvent
@NotNull public @NotNull HandlerList getHandlers()
getHandlers
in class PlayerInteractEntityEvent
@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2021. All rights reserved.