| Package | Description | 
|---|---|
| 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. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| @NotNull 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. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| @Nullable AttributeInstance | Attributable. getAttribute(@NotNull Attribute attribute) | Gets the specified attribute instance from the object. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| @Nullable com.google.common.collect.Multimap<Attribute,AttributeModifier> | ItemMeta. getAttributeModifiers() | Return an immutable copy of all Attributes and
 their modifiers in this ItemMeta. Returns null if none exist. | 
| @NotNull com.google.common.collect.Multimap<Attribute,AttributeModifier> | ItemMeta. getAttributeModifiers(@NotNull EquipmentSlot slot) | Return an immutable copy of all  Attributes and theirAttributeModifiers for a givenEquipmentSlot.Any AttributeModifierthat does have have a givenEquipmentSlotwill be returned. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| boolean | ItemMeta. addAttributeModifier(@NotNull Attribute attribute,
                    @NotNull AttributeModifier modifier) | Add an Attribute and it's Modifier. | 
| @Nullable Collection<AttributeModifier> | ItemMeta. getAttributeModifiers(@NotNull Attribute attribute) | Return an immutable copy of all  AttributeModifiers
 for a givenAttribute | 
| boolean | ItemMeta. removeAttributeModifier(@NotNull Attribute attribute) | Remove all  AttributeModifiers associated with the givenAttribute. | 
| boolean | ItemMeta. removeAttributeModifier(@NotNull Attribute attribute,
                       @NotNull AttributeModifier modifier) | Remove a specific  AttributeandAttributeModifier. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | ItemMeta. setAttributeModifiers(@Nullable com.google.common.collect.Multimap<Attribute,AttributeModifier> attributeModifiers) | Set all  Attributes and theirAttributeModifiers. | 
Copyright © 2020. All rights reserved.