Uses of Class
org.bukkit.inventory.EquipmentSlot
-
Packages that use EquipmentSlot Package Description org.bukkit.attribute Classes relevant to attributes.org.bukkit.event.block 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 insideitem stacks
. -
-
Uses of EquipmentSlot in org.bukkit.attribute
Methods in org.bukkit.attribute that return EquipmentSlot Modifier and Type Method Description @Nullable EquipmentSlot
AttributeModifier. getSlot()
Get theEquipmentSlot
this 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(@NotNull UUID uuid, @NotNull String name, double amount, @NotNull AttributeModifier.Operation operation, @Nullable EquipmentSlot slot)
-
Uses of EquipmentSlot in org.bukkit.event.block
Fields in org.bukkit.event.block declared as EquipmentSlot Modifier and Type Field Description protected EquipmentSlot
BlockPlaceEvent. hand
Methods in org.bukkit.event.block that return EquipmentSlot Modifier and Type Method Description @NotNull EquipmentSlot
BlockPlaceEvent. getHand()
Gets the hand which placed the blockConstructors in org.bukkit.event.block with parameters of type EquipmentSlot Constructor Description 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.player
Methods in org.bukkit.event.player that return EquipmentSlot Modifier and Type Method Description @NotNull EquipmentSlot
PlayerInteractEntityEvent. getHand()
The hand used to perform this interaction.@Nullable EquipmentSlot
PlayerInteractEvent. getHand()
The hand used to perform this interaction.@NotNull EquipmentSlot
PlayerShearEntityEvent. getHand()
Gets the hand used to shear the entity.@NotNull EquipmentSlot
PlayerArmorStandManipulateEvent. 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(@NotNull Player who, @NotNull ArmorStand clickedEntity, @NotNull ItemStack playerItem, @NotNull ItemStack armorStandItem, @NotNull EquipmentSlot slot)
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)
PlayerShearEntityEvent(@NotNull Player who, @NotNull Entity what, @NotNull ItemStack item, @NotNull EquipmentSlot hand)
-
Uses of EquipmentSlot in org.bukkit.inventory
Methods in org.bukkit.inventory that return EquipmentSlot Modifier and Type Method Description static EquipmentSlot
EquipmentSlot. 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 @NotNull ItemStack
EntityEquipment. getItem(@NotNull EquipmentSlot slot)
Gets the ItemStack at the given equipment slot in the inventory.@NotNull ItemStack
PlayerInventory. getItem(@NotNull EquipmentSlot slot)
Gets the ItemStack at the given equipment slot in the inventory.void
EntityEquipment. setItem(@NotNull EquipmentSlot slot, @Nullable ItemStack item)
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
Methods in org.bukkit.inventory.meta with parameters of type EquipmentSlot Modifier and Type Method Description @NotNull com.google.common.collect.Multimap<Attribute,AttributeModifier>
ItemMeta. 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.
-