| Package | Description | 
|---|---|
| com.destroystokyo.paper.event.player | |
| org.bukkit.entity | Interfaces for non-voxel objects that can exist in a  world, including all players, monsters, projectiles, etc. | 
| org.bukkit.event.block | |
| org.bukkit.event.player | |
| org.bukkit.inventory | Classes involved in manipulating player inventories and item interactions. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| EquipmentSlot | PlayerUseUnknownEntityEvent. getHand() | 
| Constructor | Description | 
|---|---|
| PlayerUseUnknownEntityEvent(Player who,
                           int entityId,
                           boolean attack,
                           EquipmentSlot hand) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| java.util.Set<EquipmentSlot> | ArmorStand. getDisabledSlots() | Get the list of disabled slots | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | ArmorStand. addDisabledSlots(EquipmentSlot... slots) | Disable specific slots, adding them
 to the currently disabled slots
 This makes it so a player is unable to interact with the Armor Stand to place, remove, or replace an item in the given slot(s)
 Note: Once a slot is disabled, the only way to get an item back it to break the armor stand. | 
| ItemStack | ArmorStand. getItem(EquipmentSlot slot) | Returns the item the armor stand has
 equip in the given equipment slot | 
| boolean | ArmorStand. isSlotDisabled(EquipmentSlot slot) | Check if a specific slot is disabled | 
| void | ArmorStand. removeDisabledSlots(EquipmentSlot... slots) | Remove the given slots from the disabled
 slots list, enabling them. | 
| void | ArmorStand. setDisabledSlots(EquipmentSlot... slots) | Set the disabled slots
 This makes it so a player is unable to interact with the Armor Stand to place, remove, or replace an item in the given slot(s)
 Note: Once a slot is disabled, the only way to get an item back it to break the armor stand. | 
| void | ArmorStand. setItem(EquipmentSlot slot,
       ItemStack item) | Sets the item the armor stand has
 equip in the given equipment slot | 
| Modifier and Type | Field | Description | 
|---|---|---|
| protected EquipmentSlot | BlockPlaceEvent. hand | 
| Modifier and Type | Method | Description | 
|---|---|---|
| EquipmentSlot | BlockPlaceEvent. getHand() | Gets the hand which placed the block | 
| Constructor | Description | 
|---|---|
| BlockPlaceEvent(Block placedBlock,
               BlockState replacedBlockState,
               Block placedAgainst,
               ItemStack itemInHand,
               Player thePlayer,
               boolean canBuild,
               EquipmentSlot hand) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| EquipmentSlot | PlayerBucketEvent. getHand() | The hand used to perform this action. | 
| EquipmentSlot | PlayerInteractEntityEvent. getHand() | The hand used to perform this interaction. | 
| EquipmentSlot | PlayerInteractEvent. getHand() | The hand used to perform this interaction. | 
| EquipmentSlot | PlayerArmorStandManipulateEvent. getSlot() | Returns the raw item slot of the armor stand in this event. | 
| Constructor | Description | 
|---|---|
| PlayerArmorStandManipulateEvent(Player who,
                               ArmorStand clickedEntity,
                               ItemStack playerItem,
                               ItemStack armorStandItem,
                               EquipmentSlot slot) | |
| PlayerBucketEmptyEvent(Player who,
                      Block blockClicked,
                      BlockFace blockFace,
                      Material bucket,
                      ItemStack itemInHand,
                      EquipmentSlot hand) | |
| PlayerBucketEvent(Player who,
                 Block blockClicked,
                 BlockFace blockFace,
                 Material bucket,
                 ItemStack itemInHand,
                 EquipmentSlot hand) | |
| PlayerBucketFillEvent(Player who,
                     Block blockClicked,
                     BlockFace blockFace,
                     Material bucket,
                     ItemStack itemInHand,
                     EquipmentSlot hand) | |
| PlayerInteractAtEntityEvent(Player who,
                           Entity clickedEntity,
                           Vector position,
                           EquipmentSlot hand) | |
| PlayerInteractEntityEvent(Player who,
                         Entity clickedEntity,
                         EquipmentSlot hand) | |
| PlayerInteractEvent(Player who,
                   Action action,
                   ItemStack item,
                   Block clickedBlock,
                   BlockFace clickedFace,
                   EquipmentSlot hand) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| static EquipmentSlot | EquipmentSlot. valueOf(java.lang.String name) | Returns the enum constant of this type with the specified name. | 
| static EquipmentSlot[] | EquipmentSlot. values() | Returns an array containing the constants of this enum type, in
the order they are declared. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| ItemStack | PlayerInventory. getItem(EquipmentSlot slot) | Gets the  ItemStackfound in the slot. | 
| void | PlayerInventory. setItem(EquipmentSlot slot,
       ItemStack stack) | Sets the  ItemStackat the givenEquipmentSlot. | 
Copyright © 2018. All rights reserved.