Uses of Enum Class
org.bukkit.inventory.EquipmentSlot
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Classes relevant to attributes.
Classes relevant to mob spawners.
Interfaces for non-voxel objects that can exist in a
world
, including all players, monsters, projectiles, etc.Events
relating to entities that hang
.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.Modifier and TypeMethodDescriptionMaterial.getDefaultAttributeModifiers
(EquipmentSlot slot) Return an immutable copy of all defaultAttribute
s and theirAttributeModifier
s for a givenEquipmentSlot
.UnsafeValues.getDefaultAttributeModifiers
(Material material, EquipmentSlot slot) Deprecated. -
Uses of EquipmentSlot in org.bukkit.attribute
ModifierConstructorDescriptionAttributeModifier
(UUID uuid, String name, double amount, AttributeModifier.Operation operation, EquipmentSlot slot) -
Uses of EquipmentSlot in org.bukkit.block.spawner
Modifier and TypeMethodDescriptionSpawnerEntry.Equipment.getDropChances()
Gets a mutable map of the drop chances for each slot of the entity.ModifierConstructorDescriptionEquipment
(LootTable equipmentLootTable, Map<EquipmentSlot, Float> dropChances) -
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 an equipment change for the target entity.Modifier and TypeMethodDescriptionvoid
Player.sendEquipmentChange
(LivingEntity entity, Map<EquipmentSlot, ItemStack> items) Send multiple equipment changes for the target 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 TypeMethodDescriptionEntityPlaceEvent.getHand()
Get the hand used to place the entity.EntityResurrectEvent.getHand()
Get the hand in which the totem of undying was found, or null if the entity did not have a totem of undying.EntityShootBowEvent.getHand()
Get the hand from which the bow was shot.PlayerLeashEntityEvent.getHand()
Returns the hand used by the player to leash the entity.ModifierConstructorDescriptionEntityPlaceEvent
(Entity entity, Player player, Block block, BlockFace blockFace, EquipmentSlot hand) EntityResurrectEvent
(LivingEntity what, EquipmentSlot hand) EntityShootBowEvent
(LivingEntity shooter, ItemStack bow, ItemStack consumable, Entity projectile, EquipmentSlot hand, float force, boolean consumeItem) PlayerLeashEntityEvent
(Entity what, Entity leashHolder, Player leasher, EquipmentSlot hand) -
Uses of EquipmentSlot in org.bukkit.event.hanging
Modifier and TypeMethodDescriptionHangingPlaceEvent.getHand()
Returns the hand that was used to place the hanging entity, or null if a player did not place the hanging entity.ModifierConstructorDescriptionHangingPlaceEvent
(Hanging hanging, Player player, Block block, BlockFace blockFace, EquipmentSlot hand) Deprecated.HangingPlaceEvent
(Hanging hanging, Player player, Block block, BlockFace blockFace, EquipmentSlot hand, ItemStack itemStack) -
Uses of EquipmentSlot in org.bukkit.event.player
Modifier and TypeMethodDescriptionPlayerArmorStandManipulateEvent.getHand()
The hand used to perform this interaction.PlayerBucketEntityEvent.getHand()
Get the hand that was used to bucket the entity.PlayerBucketEvent.getHand()
Get the hand that was used in this event.PlayerFishEvent.getHand()
Get the hand that was used in this event.PlayerHarvestBlockEvent.getHand()
Get the hand used to harvest the block.PlayerInteractEntityEvent.getHand()
The hand used to perform this interaction.PlayerInteractEvent.getHand()
The hand used to perform this interaction.PlayerItemConsumeEvent.getHand()
Get the hand used to consume the item.PlayerShearEntityEvent.getHand()
Gets the hand used to shear the entity.PlayerUnleashEntityEvent.getHand()
Get the hand used by the player to unleash the entity.PlayerArmorStandManipulateEvent.getSlot()
Returns the raw item slot of the armor stand in this event.PlayerItemMendEvent.getSlot()
Get theEquipmentSlot
in which the repairedItemStack
may be found.ModifierConstructorDescriptionPlayerArmorStandManipulateEvent
(Player who, ArmorStand clickedEntity, ItemStack playerItem, ItemStack armorStandItem, EquipmentSlot slot) Deprecated.PlayerArmorStandManipulateEvent
(Player who, ArmorStand clickedEntity, ItemStack playerItem, ItemStack armorStandItem, EquipmentSlot slot, EquipmentSlot hand) PlayerBucketEmptyEvent
(Player who, Block block, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand, EquipmentSlot hand) PlayerBucketEntityEvent
(Player player, Entity entity, ItemStack originalBucket, ItemStack entityBucket, EquipmentSlot hand) PlayerBucketEvent
(Player who, Block block, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand, EquipmentSlot hand) PlayerBucketFillEvent
(Player who, Block block, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand, EquipmentSlot hand) PlayerBucketFishEvent
(Player player, Fish fish, ItemStack waterBucket, ItemStack fishBucket, EquipmentSlot hand) Deprecated.PlayerFishEvent
(Player player, Entity entity, FishHook hookEntity, EquipmentSlot hand, PlayerFishEvent.State state) PlayerHarvestBlockEvent
(Player player, Block harvestedBlock, EquipmentSlot hand, List<ItemStack> itemsHarvested) 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) PlayerInteractEvent
(Player who, Action action, ItemStack item, Block clickedBlock, BlockFace clickedFace, EquipmentSlot hand, Vector clickedPosition) PlayerItemConsumeEvent
(Player player, ItemStack item, EquipmentSlot hand) PlayerItemMendEvent
(Player who, ItemStack item, EquipmentSlot slot, ExperienceOrb experienceOrb, int repairAmount) PlayerShearEntityEvent
(Player who, Entity what, ItemStack item, EquipmentSlot hand) PlayerUnleashEntityEvent
(Entity entity, Player player, EquipmentSlot hand) -
Uses of EquipmentSlot in org.bukkit.inventory
Modifier and TypeMethodDescriptionEquipmentSlotGroup.getExample()
Deprecated.for internal compatibility use onlystatic EquipmentSlot
Returns the enum constant of this class with the specified name.static EquipmentSlot[]
EquipmentSlot.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionItemType.getDefaultAttributeModifiers
(EquipmentSlot slot) Return an immutable copy of all defaultAttribute
s and theirAttributeModifier
s for a givenEquipmentSlot
.EntityEquipment.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.boolean
EquipmentSlotGroup.test
(EquipmentSlot test) -
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.
AttributeModifier.getSlotGroup()