Class PlayerArmorStandManipulateEvent
- All Implemented Interfaces:
- Cancellable
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.player.PlayerInteractEntityEventclickedEntityFields inherited from class org.bukkit.event.player.PlayerEventplayer
- 
Constructor SummaryConstructorsConstructorDescriptionPlayerArmorStandManipulateEvent(@NotNull Player who, @NotNull ArmorStand clickedEntity, @NotNull ItemStack playerItem, @NotNull ItemStack armorStandItem, @NotNull EquipmentSlot slot) Deprecated.PlayerArmorStandManipulateEvent(@NotNull Player who, @NotNull ArmorStand clickedEntity, @NotNull ItemStack playerItem, @NotNull ItemStack armorStandItem, @NotNull EquipmentSlot slot, @NotNull EquipmentSlot hand) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the item held by the armor stand.getHand()The hand used to perform this interaction.static @NotNull HandlerListReturns the item held by the player.Gets the entity that was right-clicked by the player.getSlot()Returns the raw item slot of the armor stand in this event.Methods inherited from class org.bukkit.event.player.PlayerInteractEntityEventisCancelled, setCancelledMethods inherited from class org.bukkit.event.player.PlayerEventgetPlayerMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronous
- 
Constructor Details- 
PlayerArmorStandManipulateEvent
- 
PlayerArmorStandManipulateEvent@Deprecated(since="1.19.2") public PlayerArmorStandManipulateEvent(@NotNull @NotNull Player who, @NotNull @NotNull ArmorStand clickedEntity, @NotNull @NotNull ItemStack playerItem, @NotNull @NotNull ItemStack armorStandItem, @NotNull @NotNull EquipmentSlot slot) Deprecated.
 
- 
- 
Method Details- 
getPlayerItemReturns the item held by the player.If this item is empty and the armor stand item is also empty, there will be no transaction between the player and the armor stand. If the player's item is empty but the armor stand item is not, the player's item will be placed on the armor stand. If both items are not empty, the items will be swapped. In the case that this event is cancelled, the original items will remain the same. - Returns:
- the item held by the player.
 
- 
getArmorStandItemReturns the item held by the armor stand.If this item is empty and the player's item is also empty, there will be no transaction between the player and the armor stand. If the player's item is empty 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 empty but the armor stand item is empty, the player's item will be placed on the armor stand. If both items are not empty, the items will be swapped. In the case that the event is cancelled the original items will remain the same. - Returns:
- the item held by the armor stand.
 
- 
getSlotReturns the raw item slot of the armor stand in this event.- Returns:
- the index of the item obtained or placed of the armor stand.
 
- 
getHandThe hand used to perform this interaction.Note that this is not the hand of the armor stand that was changed, but rather the hand used by the player to swap items with the armor stand. - Overrides:
- getHandin class- PlayerInteractEntityEvent
- Returns:
- the hand used to interact
 
- 
getRightClickedDescription copied from class:PlayerInteractEntityEventGets the entity that was right-clicked by the player.- Overrides:
- getRightClickedin class- PlayerInteractEntityEvent
- Returns:
- entity right clicked by player
 
- 
getHandlers- Overrides:
- getHandlersin class- PlayerInteractEntityEvent
 
- 
getHandlerList
 
-