Uses of Class
org.bukkit.attribute.AttributeModifier
Packages that use AttributeModifier
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 AttributeModifier in org.bukkit
Methods in org.bukkit that return types with arguments of type AttributeModifierModifier and TypeMethodDescriptionMaterial.getDefaultAttributeModifiers(EquipmentSlot slot) Return an immutable copy of all defaultAttributes and theirAttributeModifiers for a givenEquipmentSlot.UnsafeValues.getDefaultAttributeModifiers(Material material, EquipmentSlot slot) Deprecated. -
Uses of AttributeModifier in org.bukkit.attribute
Methods in org.bukkit.attribute that return AttributeModifierModifier and TypeMethodDescriptionstatic AttributeModifierAttributeModifier.deserialize(Map<String, Object> args) Methods in org.bukkit.attribute that return types with arguments of type AttributeModifierModifier and TypeMethodDescriptionAttributeInstance.getModifiers()Get all modifiers present on this instance.Methods in org.bukkit.attribute with parameters of type AttributeModifierModifier and TypeMethodDescriptionvoidAttributeInstance.addModifier(AttributeModifier modifier) Add a modifier to this instance.voidAttributeInstance.removeModifier(AttributeModifier modifier) Remove a modifier from this instance. -
Uses of AttributeModifier in org.bukkit.inventory.meta
Methods in org.bukkit.inventory.meta that return types with arguments of type AttributeModifierModifier and TypeMethodDescriptionItemMeta.getAttributeModifiers()Return an immutable copy of all Attributes and their modifiers in this ItemMeta.
Returns null if none exist.ItemMeta.getAttributeModifiers(Attribute attribute) Return an immutable copy of allAttributeModifiers for a givenAttributeItemMeta.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 AttributeModifierModifier and TypeMethodDescriptionbooleanItemMeta.addAttributeModifier(Attribute attribute, AttributeModifier modifier) Add an Attribute and it's Modifier.booleanItemMeta.removeAttributeModifier(Attribute attribute, AttributeModifier modifier) Remove a specificAttributeandAttributeModifier.Method parameters in org.bukkit.inventory.meta with type arguments of type AttributeModifierModifier and TypeMethodDescriptionvoidItemMeta.setAttributeModifiers(Multimap<Attribute, AttributeModifier> attributeModifiers) Set allAttributes and theirAttributeModifiers.