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 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.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
ModifierConstructorDescriptionPlayerUseUnknownEntityEvent(@NotNull Player who, int entityId, boolean attack, @NotNull EquipmentSlot hand)
-
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, @Nullable 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.getItemAttributes(@NotNull EquipmentSlot equipmentSlot)
Returns an immutable multimap of attributes for the slot.UnsafeValues.getItemAttributes(@NotNull Material material, EquipmentSlot equipmentSlot)
Deprecated.Returns an immutable multimap of attributes for the material and slot. -
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(@NotNull UUID uuid, @NotNull String name, double amount, @NotNull AttributeModifier.Operation operation, @Nullable EquipmentSlot slot)
-
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()
-
Uses of EquipmentSlot in org.bukkit.entity
Modifier and TypeMethodDescriptionLivingEntity.getHandRaised()
Gets the hand raised by this living entity.Modifier and TypeMethodDescriptionvoid
ArmorStand.addDisabledSlots(@NotNull 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
.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(@NotNull 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
ArmorStand.setDisabledSlots(@NotNull 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 slot -
Uses of EquipmentSlot in org.bukkit.event.block
ModifierConstructorDescriptionBlockMultiPlaceEvent(@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 TypeMethodDescriptionEntityShootBowEvent.getHand()
Get the hand from which the bow was shot.ModifierConstructorDescriptionEntityShootBowEvent(@NotNull LivingEntity shooter, @Nullable ItemStack bow, @Nullable ItemStack consumable, @NotNull Entity projectile, @NotNull EquipmentSlot hand, float force, boolean consumeItem)
-
Uses of EquipmentSlot in org.bukkit.event.player
Modifier and TypeMethodDescriptionPlayerBucketEvent.getHand()
The hand used to perform this action.PlayerInteractEntityEvent.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(@NotNull Player who, @NotNull ArmorStand clickedEntity, @NotNull ItemStack playerItem, @NotNull ItemStack armorStandItem, @NotNull EquipmentSlot slot)
PlayerBucketEmptyEvent(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @Nullable EquipmentSlot hand)
Deprecated.PlayerBucketEmptyEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @Nullable EquipmentSlot hand)
PlayerBucketEvent(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @Nullable EquipmentSlot hand)
Deprecated.PlayerBucketEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @Nullable EquipmentSlot hand)
PlayerBucketFillEvent(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @Nullable EquipmentSlot hand)
Deprecated.PlayerBucketFillEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @Nullable EquipmentSlot hand)
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 Location interactionPoint)
PlayerShearEntityEvent(@NotNull Player who, @NotNull Entity what, @NotNull ItemStack item, @NotNull EquipmentSlot hand)
-
Uses of EquipmentSlot in org.bukkit.inventory
Modifier and TypeMethodDescriptionstatic 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 TypeMethodDescriptionfloat
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. -
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 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.