Uses of Class
org.bukkit.inventory.EquipmentSlot
| Package | Description |
|---|---|
| org.bukkit.attribute |
Classes relevant to attributes.
|
| org.bukkit.entity |
Interfaces for non-voxel objects that can exist in a
world, including all players, monsters, projectiles, etc. |
| org.bukkit.event.block | |
| org.bukkit.event.entity | |
| org.bukkit.event.player | |
| org.bukkit.inventory |
Classes involved in manipulating player inventories and item interactions.
|
| org.bukkit.inventory.meta |
The interfaces used when manipulating extra data can can be stored inside
item stacks. |
-
Uses of EquipmentSlot in org.bukkit.attribute
Methods in org.bukkit.attribute that return EquipmentSlot Modifier and Type Method Description EquipmentSlotAttributeModifier. getSlot()Get theEquipmentSlotthis AttributeModifier is active on, or null if this modifier is applicable for any slot.Constructors in org.bukkit.attribute with parameters of type EquipmentSlot Constructor Description AttributeModifier(UUID uuid, String name, double amount, AttributeModifier.Operation operation, EquipmentSlot slot) -
Uses of EquipmentSlot in org.bukkit.entity
Methods in org.bukkit.entity with parameters of type EquipmentSlot Modifier and Type Method Description voidArmorStand. addEquipmentLock(EquipmentSlot slot, ArmorStand.LockType lockType)Locks the equipment slot with the specifiedlocking mechanism.booleanArmorStand. hasEquipmentLock(EquipmentSlot slot, ArmorStand.LockType lockType)Returns if the ArmorStand has the specifiedlocking mechanism.voidArmorStand. removeEquipmentLock(EquipmentSlot slot, ArmorStand.LockType lockType)Remove alocking mechanism. -
Uses of EquipmentSlot in org.bukkit.event.block
Fields in org.bukkit.event.block declared as EquipmentSlot Modifier and Type Field Description protected EquipmentSlotBlockPlaceEvent. handMethods in org.bukkit.event.block that return EquipmentSlot Modifier and Type Method Description EquipmentSlotBlockPlaceEvent. getHand()Gets the hand which placed the blockConstructors in org.bukkit.event.block with parameters of type EquipmentSlot Constructor Description BlockPlaceEvent(Block placedBlock, BlockState replacedBlockState, Block placedAgainst, ItemStack itemInHand, Player thePlayer, boolean canBuild, EquipmentSlot hand) -
Uses of EquipmentSlot in org.bukkit.event.entity
Methods in org.bukkit.event.entity that return EquipmentSlot Modifier and Type Method Description EquipmentSlotEntityShootBowEvent. getHand()Get the hand from which the bow was shot.Constructors in org.bukkit.event.entity with parameters of type EquipmentSlot Constructor Description EntityShootBowEvent(LivingEntity shooter, ItemStack bow, ItemStack consumable, Entity projectile, EquipmentSlot hand, float force, boolean consumeItem) -
Uses of EquipmentSlot in org.bukkit.event.player
Methods in org.bukkit.event.player that return EquipmentSlot Modifier and Type Method Description EquipmentSlotPlayerInteractEntityEvent. getHand()The hand used to perform this interaction.EquipmentSlotPlayerInteractEvent. getHand()The hand used to perform this interaction.EquipmentSlotPlayerShearEntityEvent. getHand()Gets the hand used to shear the entity.EquipmentSlotPlayerArmorStandManipulateEvent. getSlot()Returns the raw item slot of the armor stand in this event.Constructors in org.bukkit.event.player with parameters of type EquipmentSlot Constructor Description PlayerArmorStandManipulateEvent(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
Methods in org.bukkit.inventory that return EquipmentSlot Modifier and Type Method Description static EquipmentSlotEquipmentSlot. valueOf(String name)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.Methods in org.bukkit.inventory with parameters of type EquipmentSlot Modifier and Type Method Description ItemStackEntityEquipment. getItem(EquipmentSlot slot)Gets the ItemStack at the given equipment slot in the inventory.ItemStackPlayerInventory. getItem(EquipmentSlot slot)Gets the ItemStack at the given equipment slot in the inventory.voidEntityEquipment. setItem(EquipmentSlot slot, ItemStack item)Stores the ItemStack at the given equipment slot in the inventory.voidEntityEquipment. setItem(EquipmentSlot slot, ItemStack item, boolean silent)Stores the ItemStack at the given equipment slot in the inventory.voidPlayerInventory. setItem(EquipmentSlot slot, ItemStack item)Stores the ItemStack at the given equipment slot in the inventory. -
Uses of EquipmentSlot in org.bukkit.inventory.meta
Methods in org.bukkit.inventory.meta with parameters of type EquipmentSlot Modifier and Type Method Description Multimap<Attribute,AttributeModifier>ItemMeta. getAttributeModifiers(EquipmentSlot slot)Return an immutable copy of allAttributes and theirAttributeModifiers for a givenEquipmentSlot.
AnyAttributeModifierthat does have have a givenEquipmentSlotwill be returned.booleanItemMeta. removeAttributeModifier(EquipmentSlot slot)Remove allAttributes andAttributeModifiers for a givenEquipmentSlot.
If the givenEquipmentSlotis null, this will remove allAttributeModifiers that do not have an EquipmentSlot set.