Uses of Enum
org.bukkit.inventory.EquipmentSlot
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Classes relevant to attributes.
Interfaces for non-voxel objects that can exist in a
world
, including all players, monsters, projectiles, etc.Classes involved in manipulating player inventories and item interactions.
The interfaces used when manipulating extra data can can be stored inside
item stacks
.-
Uses of EquipmentSlot in org.bukkit
Modifier and TypeMethodDescriptionMaterial.getEquipmentSlot()
Get the best suitable slot for this Material. -
Uses of EquipmentSlot in org.bukkit.attribute
Modifier and TypeMethodDescriptionAttributeModifier.getSlot()
Get theEquipmentSlot
this AttributeModifier is active on, or null if this modifier is applicable for any slot.ModifierConstructorDescriptionAttributeModifier
(UUID uuid, String name, double amount, AttributeModifier.Operation operation, EquipmentSlot slot) -
Uses of EquipmentSlot in org.bukkit.entity
Modifier and TypeMethodDescriptionvoid
ArmorStand.addEquipmentLock
(EquipmentSlot slot, ArmorStand.LockType lockType) Locks the equipment slot with the specifiedlocking mechanism
.boolean
ArmorStand.hasEquipmentLock
(EquipmentSlot slot, ArmorStand.LockType lockType) Returns if the ArmorStand has the specifiedlocking mechanism
.void
ArmorStand.removeEquipmentLock
(EquipmentSlot slot, ArmorStand.LockType lockType) Remove alocking mechanism
.void
Player.sendEquipmentChange
(LivingEntity entity, EquipmentSlot slot, ItemStack item) Send the equipment change of an entity. -
Uses of EquipmentSlot in org.bukkit.event.block
ModifierConstructorDescriptionBlockPlaceEvent
(Block placedBlock, BlockState replacedBlockState, Block placedAgainst, ItemStack itemInHand, Player thePlayer, boolean canBuild, EquipmentSlot hand) -
Uses of EquipmentSlot in org.bukkit.event.entity
Modifier and TypeMethodDescriptionEntityShootBowEvent.getHand()
Get the hand from which the bow was shot.ModifierConstructorDescriptionEntityShootBowEvent
(LivingEntity shooter, ItemStack bow, ItemStack consumable, Entity projectile, EquipmentSlot hand, float force, boolean consumeItem) -
Uses of EquipmentSlot in org.bukkit.event.player
Modifier and TypeMethodDescriptionPlayerInteractEntityEvent.getHand()
The hand used to perform this interaction.PlayerInteractEvent.getHand()
The hand used to perform this interaction.PlayerShearEntityEvent.getHand()
Gets the hand used to shear the entity.PlayerArmorStandManipulateEvent.getSlot()
Returns the raw item slot of the armor stand in this event.ModifierConstructorDescriptionPlayerArmorStandManipulateEvent
(Player who, ArmorStand clickedEntity, ItemStack playerItem, ItemStack armorStandItem, EquipmentSlot slot) 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) PlayerShearEntityEvent
(Player who, Entity what, ItemStack item, EquipmentSlot hand) -
Uses of EquipmentSlot in org.bukkit.inventory
Modifier and TypeMethodDescriptionstatic EquipmentSlot
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 TypeMethodDescriptionEntityEquipment.getItem
(EquipmentSlot slot) Gets the ItemStack at the given equipment slot in the inventory.PlayerInventory.getItem
(EquipmentSlot slot) Gets the ItemStack at the given equipment slot in the inventory.void
EntityEquipment.setItem
(EquipmentSlot slot, ItemStack item) Stores the ItemStack at the given equipment slot in the inventory.void
EntityEquipment.setItem
(EquipmentSlot slot, ItemStack item, boolean silent) Stores the ItemStack at the given equipment slot in the inventory.void
PlayerInventory.setItem
(EquipmentSlot slot, ItemStack item) Stores the ItemStack at the given equipment slot in the inventory. -
Uses of EquipmentSlot in org.bukkit.inventory.meta
Modifier and TypeMethodDescriptionItemMeta.getAttributeModifiers
(EquipmentSlot slot) Return an immutable copy of allAttribute
s and theirAttributeModifier
s for a givenEquipmentSlot
.
AnyAttributeModifier
that does have have a givenEquipmentSlot
will be returned.boolean
ItemMeta.removeAttributeModifier
(EquipmentSlot slot) Remove allAttribute
s andAttributeModifier
s for a givenEquipmentSlot
.
If the givenEquipmentSlot
is null, this will remove allAttributeModifier
s that do not have an EquipmentSlot set.