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.
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
.-
Uses of EquipmentSlot in com.destroystokyo.paper.event.player
Modifier and TypeMethodDescriptionPlayerElytraBoostEvent.getHand()
Gets the hand holding the firework used for boosting this player.PlayerUseUnknownEntityEvent.getHand()
Returns the hand used to perform this interaction.ModifierConstructorDescriptionPlayerElytraBoostEvent
(@NotNull Player player, @NotNull ItemStack itemStack, @NotNull Firework firework, @NotNull EquipmentSlot hand) PlayerUseUnknownEntityEvent
(@NotNull Player player, int entityId, boolean attack, @NotNull EquipmentSlot hand, @Nullable Vector clickedPosition) -
Uses of EquipmentSlot in io.papermc.paper.event.block
Modifier and TypeMethodDescriptionPlayerShearBlockEvent.getHand()
Gets the hand used to shear the block. -
Uses of EquipmentSlot in io.papermc.paper.event.entity
Modifier and TypeMethodDescriptionEntityLoadCrossbowEvent.getHand()
Gets the hand from which the crossbow was loaded.ModifierConstructorDescriptionEntityLoadCrossbowEvent
(@NotNull LivingEntity entity, @NotNull ItemStack crossbow, @NotNull EquipmentSlot hand) -
Uses of EquipmentSlot in io.papermc.paper.event.player
Modifier and TypeMethodDescriptionPlayerArmSwingEvent.getHand()
Returns the hand of the arm swing.ModifierConstructorDescriptionPlayerArmSwingEvent
(@NotNull Player player, @NotNull EquipmentSlot equipmentSlot) -
Uses of EquipmentSlot in org.bukkit
Modifier and TypeMethodDescriptionMaterial.getEquipmentSlot()
Get the best suitable slot for this Material.Modifier 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.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
ModifierConstructorDescriptionAttributeModifier
(@NotNull UUID uuid, @NotNull String name, double amount, @NotNull AttributeModifier.Operation operation, @Nullable 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. -
Uses of EquipmentSlot in org.bukkit.enchantments
Modifier and TypeMethodDescriptionabstract Set
<EquipmentSlot> Enchantment.getActiveSlots()
Gets the equipment slots where this enchantment is considered "active".EnchantmentWrapper.getActiveSlots()
Deprecated. -
Uses of EquipmentSlot in org.bukkit.entity
Modifier and TypeMethodDescriptionLivingEntity.getActiveItemHand()
Get the hand using the active item.default EquipmentSlot
LivingEntity.getHandRaised()
Gets the hand raised by this living entity.Modifier 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.void
LivingEntity.damageItemStack
(@NotNull EquipmentSlot slot, int amount) Damages the itemstack in this slot by the specified amount.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
(@NotNull LivingEntity entity, @NotNull 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.Modifier and TypeMethodDescriptionvoid
Player.sendEquipmentChange
(@NotNull LivingEntity entity, @NotNull Map<EquipmentSlot, ItemStack> items) Send multiple equipment changes for the target entity. -
Uses of EquipmentSlot in org.bukkit.event.block
Modifier and TypeMethodDescriptionBlockCanBuildEvent.getHand()
Gets the hand the player will use to place the blockBlockPlaceEvent.getHand()
Gets the hand which placed the blockModifierConstructorDescriptionBlockCanBuildEvent
(@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
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
(@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
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
(@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
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
(@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, IntUnaryOperator durabilityToXpOp) 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
Modifier 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.Modifier 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
Modifier 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.
Material.getDefaultAttributeModifiers(EquipmentSlot)