Uses of Class
org.bukkit.attribute.Attribute
Package | Description |
---|---|
org.bukkit |
The root package of the Bukkit API, contains generalized API classes.
|
org.bukkit.attribute |
Classes relevant to attributes.
|
org.bukkit.inventory.meta |
The interfaces used when manipulating extra data can can be stored inside
item stacks . |
-
Uses of Attribute in org.bukkit
Fields in org.bukkit with type parameters of type Attribute Modifier and Type Field Description static Registry<Attribute>
Registry. ATTRIBUTE
Attribute. -
Uses of Attribute in org.bukkit.attribute
Methods in org.bukkit.attribute that return Attribute Modifier and Type Method Description Attribute
AttributeInstance. getAttribute()
The attribute pertaining to this instance.static Attribute
Attribute. valueOf(String name)
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.Methods in org.bukkit.attribute with parameters of type Attribute Modifier and Type Method Description AttributeInstance
Attributable. getAttribute(Attribute attribute)
Gets the specified attribute instance from the object. -
Uses of Attribute in org.bukkit.inventory.meta
Methods in org.bukkit.inventory.meta that return types with arguments of type Attribute Modifier and Type Method Description Multimap<Attribute,AttributeModifier>
ItemMeta. getAttributeModifiers()
Return an immutable copy of all Attributes and their modifiers in this ItemMeta.
Returns null if none exist.Multimap<Attribute,AttributeModifier>
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.Methods in org.bukkit.inventory.meta with parameters of type Attribute Modifier and Type Method Description boolean
ItemMeta. addAttributeModifier(Attribute attribute, AttributeModifier modifier)
Add an Attribute and it's Modifier.Collection<AttributeModifier>
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
.Method parameters in org.bukkit.inventory.meta with type arguments of type Attribute Modifier and Type Method Description void
ItemMeta. setAttributeModifiers(Multimap<Attribute,AttributeModifier> attributeModifiers)
Set allAttribute
s and theirAttributeModifier
s.