Uses of Enum
org.bukkit.attribute.Attribute
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Classes relevant to attributes.
The interfaces used when manipulating extra data can can be stored inside
item stacks
.-
Uses of Attribute in org.bukkit
-
Uses of Attribute in org.bukkit.attribute
Modifier and TypeMethodDescriptionAttributeInstance.getAttribute()
The attribute pertaining to this instance.static Attribute
Returns the enum constant of this type with the specified name.static Attribute[]
Attribute.values()
Returns an array containing the constants of this enum type, in the order they are declared.Modifier and TypeMethodDescriptionAttributable.getAttribute
(Attribute attribute) Gets the specified attribute instance from the object. -
Uses of Attribute in org.bukkit.inventory.meta
Modifier and TypeMethodDescriptionItemMeta.getAttributeModifiers()
Return an immutable copy of all Attributes and their modifiers in this ItemMeta.
Returns null if none exist.ItemMeta.getAttributeModifiers
(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.Modifier and TypeMethodDescriptionboolean
ItemMeta.addAttributeModifier
(Attribute attribute, AttributeModifier modifier) Add an Attribute and it's Modifier.ItemMeta.getAttributeModifiers
(Attribute attribute) Return an immutable copy of allAttributeModifier
s for a givenAttribute
boolean
ItemMeta.removeAttributeModifier
(Attribute attribute) Remove allAttributeModifier
s associated with the givenAttribute
.boolean
ItemMeta.removeAttributeModifier
(Attribute attribute, AttributeModifier modifier) Remove a specificAttribute
andAttributeModifier
.Modifier and TypeMethodDescriptionvoid
ItemMeta.setAttributeModifiers
(Multimap<Attribute, AttributeModifier> attributeModifiers) Set allAttribute
s and theirAttributeModifier
s.