Uses of Enum Class
org.bukkit.inventory.EquipmentSlot
Packages that use EquipmentSlot
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Classes relevant to attributes.
Classes relevant to mob spawners.
Classes relating to the specialized enhancements to
item stacks
, as part of the meta data
.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
.Isolated components which may form part of item meta.
-
Uses of EquipmentSlot in com.destroystokyo.paper.event.player
Methods in com.destroystokyo.paper.event.player that return EquipmentSlotModifier and TypeMethodDescriptionPlayerElytraBoostEvent.getHand()
Gets the hand holding the firework used for boosting this player.PlayerUseUnknownEntityEvent.getHand()
Returns the hand used to perform this interaction.PlayerArmorChangeEvent.getSlot()
Gets the slot being altered.Constructors in com.destroystokyo.paper.event.player with parameters of type EquipmentSlotModifierConstructorDescriptionPlayerElytraBoostEvent
(Player player, ItemStack itemStack, Firework firework, EquipmentSlot hand) PlayerUseUnknownEntityEvent
(Player player, int entityId, boolean attack, EquipmentSlot hand, @Nullable Vector clickedPosition) -
Uses of EquipmentSlot in io.papermc.paper.datacomponent.item
Methods in io.papermc.paper.datacomponent.item that return EquipmentSlotModifier and TypeMethodDescriptionEquippable.slot()
Gets the equipment slot this item can be equipped in.Methods in io.papermc.paper.datacomponent.item with parameters of type EquipmentSlotModifier and TypeMethodDescriptionstatic Equippable.Builder
Equippable.equippable
(EquipmentSlot slot) Creates a newEquippable.Builder
instance. -
Uses of EquipmentSlot in io.papermc.paper.event.block
Methods in io.papermc.paper.event.block that return EquipmentSlotModifier and TypeMethodDescriptionPlayerShearBlockEvent.getHand()
Gets the hand used to shear the block.Constructors in io.papermc.paper.event.block with parameters of type EquipmentSlotModifierConstructorDescriptionPlayerShearBlockEvent
(Player player, Block block, ItemStack item, EquipmentSlot hand, List<ItemStack> drops) -
Uses of EquipmentSlot in io.papermc.paper.event.entity
Methods in io.papermc.paper.event.entity that return EquipmentSlotModifier and TypeMethodDescriptionEntityLoadCrossbowEvent.getHand()
Gets the hand from which the crossbow was loaded.Methods in io.papermc.paper.event.entity that return types with arguments of type EquipmentSlotModifier and TypeMethodDescriptionEntityEquipmentChangedEvent.getEquipmentChanges()
Gets a map of changed slots to their respective equipment changes.Constructors in io.papermc.paper.event.entity with parameters of type EquipmentSlotModifierConstructorDescriptionEntityLoadCrossbowEvent
(LivingEntity entity, ItemStack crossbow, EquipmentSlot hand) Constructor parameters in io.papermc.paper.event.entity with type arguments of type EquipmentSlotModifierConstructorDescriptionEntityEquipmentChangedEvent
(LivingEntity entity, Map<EquipmentSlot, EntityEquipmentChangedEvent.EquipmentChange> equipmentChanges) -
Uses of EquipmentSlot in io.papermc.paper.event.player
Methods in io.papermc.paper.event.player that return EquipmentSlotModifier and TypeMethodDescriptionPlayerArmSwingEvent.getHand()
Returns the hand of the arm swing.Constructors in io.papermc.paper.event.player with parameters of type EquipmentSlot -
Uses of EquipmentSlot in org.bukkit
Methods in org.bukkit that return EquipmentSlotModifier and TypeMethodDescriptionMaterial.getEquipmentSlot()
Get the best suitable slot for this Material.Methods in org.bukkit with parameters of type EquipmentSlotModifier and TypeMethodDescriptionMaterial.getDefaultAttributeModifiers
(@NotNull EquipmentSlot slot) Return an immutable copy of all defaultAttribute
s and theirAttributeModifier
s for a givenEquipmentSlot
.UnsafeValues.getDefaultAttributeModifiers
(Material material, EquipmentSlot slot) Deprecated, for removal: This API element is subject to removal in a future version.Material.getItemAttributes
(@NotNull EquipmentSlot equipmentSlot) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of EquipmentSlot in org.bukkit.attribute
Methods in org.bukkit.attribute that return EquipmentSlotConstructors in org.bukkit.attribute with parameters of type EquipmentSlotModifierConstructorDescriptionAttributeModifier
(@NotNull UUID uuid, @NotNull String name, double amount, @NotNull AttributeModifier.Operation operation, @Nullable EquipmentSlot slot) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of EquipmentSlot in org.bukkit.block.spawner
Methods in org.bukkit.block.spawner that return types with arguments of type EquipmentSlotModifier and TypeMethodDescriptionSpawnerEntry.Equipment.getDropChances()
Gets a mutable map of the drop chances for each slot of the entity.Constructor parameters in org.bukkit.block.spawner with type arguments of type EquipmentSlot -
Uses of EquipmentSlot in org.bukkit.enchantments
Methods in org.bukkit.enchantments that return types with arguments of type EquipmentSlotModifier and TypeMethodDescriptionEnchantment.getActiveSlots()
Deprecated, for removal: This API element is subject to removal in a future version.UseEnchantment.getActiveSlotGroups()
instead as enchantments are now applicable to a group of equipment slots.EnchantmentWrapper.getActiveSlots()
Deprecated. -
Uses of EquipmentSlot in org.bukkit.entity
Methods in org.bukkit.entity that return EquipmentSlotModifier and TypeMethodDescriptionLivingEntity.getActiveItemHand()
Get the hand using the active item.default EquipmentSlot
LivingEntity.getHandRaised()
Gets the hand raised by this living entity.Methods in org.bukkit.entity that return types with arguments of type EquipmentSlotMethods in org.bukkit.entity with parameters of type EquipmentSlotModifier and TypeMethodDescriptionvoid
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.void
ArmorStand.addEquipmentLock
(@NotNull EquipmentSlot slot, @NotNull ArmorStand.LockType lockType) Locks the equipment slot with the specifiedlocking mechanism
.void
LivingEntity.broadcastSlotBreak
(@NotNull EquipmentSlot slot) Notifies all clients tracking this entity that the item in the slot of this entity broke.void
LivingEntity.broadcastSlotBreak
(@NotNull EquipmentSlot slot, @NotNull Collection<Player> players) Notifies specified players that the item in the slot of this entity broke.boolean
LivingEntity.canUseEquipmentSlot
(@NotNull EquipmentSlot slot) Checks whether this entity can use the equipment slot.void
LivingEntity.damageItemStack
(@NotNull EquipmentSlot slot, int amount) Damages the itemstack in this slot by the specified amount.HumanEntity.dropItem
(EquipmentSlot slot) Makes the player drop all items from their inventory based on the equipment slot.HumanEntity.dropItem
(EquipmentSlot slot, int amount) Makes the player drop an item from their inventory based on the equipment slot.HumanEntity.dropItem
(EquipmentSlot slot, int amount, boolean throwRandomly, @Nullable Consumer<Item> entityOperation) Makes the player drop an item from their inventory based on the equipment slot.ArmorStand.getItem
(EquipmentSlot slot) Returns the item the armor stand has equip in the given equipment slotboolean
ArmorStand.hasEquipmentLock
(@NotNull EquipmentSlot slot, @NotNull ArmorStand.LockType lockType) Returns if the ArmorStand has the specifiedlocking mechanism
.boolean
ArmorStand.isSlotDisabled
(EquipmentSlot slot) Check if a specific slot is disabledvoid
ArmorStand.removeDisabledSlots
(EquipmentSlot... slots) Remove the given slots from the disabled slots list, enabling them.void
ArmorStand.removeEquipmentLock
(@NotNull EquipmentSlot slot, @NotNull ArmorStand.LockType lockType) Remove alocking mechanism
.void
Player.sendEquipmentChange
(LivingEntity entity, EquipmentSlot slot, @Nullable ItemStack item) Send an equipment change for the target entity.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, @Nullable ItemStack item) Sets the item the armor stand has equip in the given equipment slotvoid
LivingEntity.startUsingItem
(EquipmentSlot hand) Starts using the item in the specified hand, making it the currently active item.default void
LivingEntity.swingHand
(EquipmentSlot hand) Makes this entity swing their hand.Method parameters in org.bukkit.entity with type arguments of type EquipmentSlotModifier and TypeMethodDescriptionvoid
Player.sendEquipmentChange
(LivingEntity entity, Map<EquipmentSlot, @Nullable ItemStack> items) Send multiple equipment changes for the target entity. -
Uses of EquipmentSlot in org.bukkit.event.block
Fields in org.bukkit.event.block declared as EquipmentSlotMethods in org.bukkit.event.block that return EquipmentSlotModifier and TypeMethodDescriptionBlockCanBuildEvent.getHand()
Gets the hand the player will use to place the blockBlockPlaceEvent.getHand()
Gets the hand which placed the blockConstructors in org.bukkit.event.block with parameters of type EquipmentSlotModifierConstructorDescriptionBlockCanBuildEvent
(@NotNull Block block, @Nullable Player player, @NotNull BlockData type, boolean canBuild, EquipmentSlot hand) BlockMultiPlaceEvent
(@NotNull List<BlockState> states, @NotNull Block clicked, @NotNull ItemStack itemInHand, @NotNull Player thePlayer, boolean canBuild, EquipmentSlot hand) BlockPlaceEvent
(@NotNull Block placedBlock, @NotNull BlockState replacedBlockState, @NotNull Block placedAgainst, @NotNull ItemStack itemInHand, @NotNull Player thePlayer, boolean canBuild, @NotNull EquipmentSlot hand) -
Uses of EquipmentSlot in org.bukkit.event.entity
Methods in org.bukkit.event.entity that return EquipmentSlotModifier 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.Constructors in org.bukkit.event.entity with parameters of type EquipmentSlotModifierConstructorDescriptionEntityPlaceEvent
(@NotNull Entity entity, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace, @NotNull EquipmentSlot hand) EntityResurrectEvent
(@NotNull LivingEntity what, @Nullable EquipmentSlot hand) EntityShootBowEvent
(@NotNull LivingEntity shooter, @Nullable ItemStack bow, @Nullable ItemStack consumable, @NotNull Entity projectile, @NotNull EquipmentSlot hand, float force, boolean consumeItem) PlayerLeashEntityEvent
(@NotNull Entity what, @NotNull Entity leashHolder, @NotNull Player leasher, @NotNull EquipmentSlot hand) -
Uses of EquipmentSlot in org.bukkit.event.hanging
Methods in org.bukkit.event.hanging that return EquipmentSlotModifier 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.Constructors in org.bukkit.event.hanging with parameters of type EquipmentSlotModifierConstructorDescriptionHangingPlaceEvent
(@NotNull Hanging hanging, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace, @Nullable EquipmentSlot hand) Deprecated.HangingPlaceEvent
(@NotNull Hanging hanging, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace, @Nullable EquipmentSlot hand, @Nullable ItemStack itemStack) -
Uses of EquipmentSlot in org.bukkit.event.player
Methods in org.bukkit.event.player that return EquipmentSlotModifier 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.Constructors in org.bukkit.event.player with parameters of type EquipmentSlotModifierConstructorDescriptionPlayerArmorStandManipulateEvent
(@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) PlayerBucketEmptyEvent
(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @NotNull EquipmentSlot hand) PlayerBucketEntityEvent
(@NotNull Player player, @NotNull Entity entity, @NotNull ItemStack originalBucket, @NotNull ItemStack entityBucket, @NotNull EquipmentSlot hand) PlayerBucketEvent
(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @NotNull EquipmentSlot hand) PlayerBucketFillEvent
(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @NotNull EquipmentSlot hand) PlayerBucketFishEvent
(@NotNull Player player, @NotNull Fish fish, @NotNull ItemStack waterBucket, @NotNull ItemStack fishBucket, @NotNull EquipmentSlot hand) Deprecated.PlayerFishEvent
(@NotNull Player player, @Nullable Entity entity, @NotNull FishHook hookEntity, @Nullable EquipmentSlot hand, @NotNull PlayerFishEvent.State state) PlayerHarvestBlockEvent
(@NotNull Player player, @NotNull Block harvestedBlock, @NotNull EquipmentSlot hand, @NotNull List<ItemStack> itemsHarvested) PlayerInteractAtEntityEvent
(@NotNull Player who, @NotNull Entity clickedEntity, @NotNull Vector position, @NotNull EquipmentSlot hand) PlayerInteractEntityEvent
(@NotNull Player who, @NotNull Entity clickedEntity, @NotNull EquipmentSlot hand) PlayerInteractEvent
(@NotNull Player who, @NotNull Action action, @Nullable ItemStack item, @Nullable Block clickedBlock, @NotNull BlockFace clickedFace, @Nullable EquipmentSlot hand) PlayerInteractEvent
(@NotNull Player who, @NotNull Action action, @Nullable ItemStack item, @Nullable Block clickedBlock, @NotNull BlockFace clickedFace, @Nullable EquipmentSlot hand, @Nullable Vector clickedPosition) PlayerItemConsumeEvent
(@NotNull Player player, @NotNull ItemStack item, @NotNull EquipmentSlot hand) PlayerItemMendEvent
(@NotNull Player who, @NotNull ItemStack item, @NotNull EquipmentSlot slot, @NotNull ExperienceOrb experienceOrb, int repairAmount) Deprecated.PlayerItemMendEvent
(@NotNull Player who, @NotNull ItemStack item, @NotNull EquipmentSlot slot, @NotNull ExperienceOrb experienceOrb, int repairAmount, int consumedExperience) PlayerShearEntityEvent
(@NotNull Player who, @NotNull Entity what, @NotNull ItemStack item, @NotNull EquipmentSlot hand, @NotNull List<ItemStack> drops) PlayerUnleashEntityEvent
(@NotNull Entity entity, @NotNull Player player, @NotNull EquipmentSlot hand) Deprecated.PlayerUnleashEntityEvent
(@NotNull Entity entity, @NotNull Player player, @NotNull EquipmentSlot hand, boolean dropLeash) -
Uses of EquipmentSlot in org.bukkit.inventory
Methods in org.bukkit.inventory that return EquipmentSlotModifier and TypeMethodDescriptionEquipmentSlotGroup.getExample()
Deprecated.for internal compatibility use onlyEquipmentSlot.getOppositeHand()
Gets the opposite handstatic 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.Methods in org.bukkit.inventory with parameters of type EquipmentSlotModifier and TypeMethodDescriptionItemType.getDefaultAttributeModifiers
(@NotNull EquipmentSlot slot) Return an immutable copy of all defaultAttribute
s and theirAttributeModifier
s for a givenEquipmentSlot
.float
EntityEquipment.getDropChance
(@NotNull EquipmentSlot slot) Gets the drop chance of specified slot.EntityEquipment.getItem
(@NotNull EquipmentSlot slot) Gets the ItemStack at the given equipment slot in the inventory.PlayerInventory.getItem
(@NotNull EquipmentSlot slot) Gets the ItemStack at the given equipment slot in the inventory.void
EntityEquipment.setDropChance
(@NotNull EquipmentSlot slot, float chance) Sets the drop chance of the specified slot.void
EntityEquipment.setItem
(@NotNull EquipmentSlot slot, @Nullable ItemStack item) Stores the ItemStack at the given equipment slot in the inventory.void
EntityEquipment.setItem
(@NotNull EquipmentSlot slot, @Nullable ItemStack item, boolean silent) Stores the ItemStack at the given equipment slot in the inventory.void
PlayerInventory.setItem
(@NotNull EquipmentSlot slot, @Nullable ItemStack item) Stores the ItemStack at the given equipment slot in the inventory.boolean
EquipmentSlotGroup.test
(@NotNull EquipmentSlot test) -
Uses of EquipmentSlot in org.bukkit.inventory.meta
Methods in org.bukkit.inventory.meta with parameters of type EquipmentSlotModifier and TypeMethodDescriptionItemMeta.getAttributeModifiers
(@NotNull EquipmentSlot slot) Return an immutable copy of allAttribute
s and theirAttributeModifier
s for a givenEquipmentSlot
.
AnyAttributeModifier
that does have a givenEquipmentSlot
will be returned.boolean
ItemMeta.removeAttributeModifier
(@NotNull 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. -
Uses of EquipmentSlot in org.bukkit.inventory.meta.components
Methods in org.bukkit.inventory.meta.components that return EquipmentSlotModifier and TypeMethodDescriptionEquippableComponent.getSlot()
Gets the slot the item can be equipped to.Methods in org.bukkit.inventory.meta.components with parameters of type EquipmentSlotModifier and TypeMethodDescriptionvoid
EquippableComponent.setSlot
(@NotNull EquipmentSlot slot) Sets the slot the item can be equipped to.
Material.getDefaultAttributeModifiers(EquipmentSlot)