Uses of Class
org.bukkit.attribute.Attribute
-
Packages that use Attribute Package Description org.bukkit.attribute org.bukkit.inventory.meta The interfaces used when manipulating extra data can can be stored insideitem stacks. -
-
Uses of Attribute in org.bukkit.attribute
Methods in org.bukkit.attribute that return Attribute Modifier and Type Method Description AttributeAttributeInstance. getAttribute()The attribute pertaining to this instance.static AttributeAttribute. 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 AttributeInstanceAttributable. 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 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.com.google.common.collect.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.Methods in org.bukkit.inventory.meta with parameters of type Attribute Modifier and Type Method Description booleanItemMeta. addAttributeModifier(Attribute attribute, AttributeModifier modifier)Add an Attribute and it's Modifier.Collection<AttributeModifier>ItemMeta. getAttributeModifiers(Attribute attribute)Return an immutable copy of allAttributeModifiers for a givenAttributebooleanItemMeta. removeAttributeModifier(Attribute attribute)Remove allAttributeModifiers associated with the givenAttribute.booleanItemMeta. removeAttributeModifier(Attribute attribute, AttributeModifier modifier)Remove a specificAttributeandAttributeModifier.Method parameters in org.bukkit.inventory.meta with type arguments of type Attribute Modifier and Type Method Description voidItemMeta. setAttributeModifiers(com.google.common.collect.Multimap<Attribute,AttributeModifier> attributeModifiers)Set allAttributes and theirAttributeModifiers.
-