Uses of Class
org.bukkit.attribute.AttributeModifier
-
Packages that use AttributeModifier Package Description org.bukkit.attribute Classes relevant to attributes.org.bukkit.inventory.meta The interfaces used when manipulating extra data can can be stored insideitem stacks. -
-
Uses of AttributeModifier in org.bukkit.attribute
Methods in org.bukkit.attribute that return AttributeModifier Modifier and Type Method Description static @NotNull AttributeModifierAttributeModifier. deserialize(@NotNull Map<String,Object> args)Methods in org.bukkit.attribute that return types with arguments of type AttributeModifier Modifier and Type Method Description @NotNull Collection<AttributeModifier>AttributeInstance. getModifiers()Get all modifiers present on this instance.Methods in org.bukkit.attribute with parameters of type AttributeModifier Modifier and Type Method Description voidAttributeInstance. addModifier(@NotNull AttributeModifier modifier)Add a modifier to this instance.voidAttributeInstance. removeModifier(@NotNull 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 AttributeModifier 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.@Nullable Collection<AttributeModifier>ItemMeta. getAttributeModifiers(@NotNull Attribute attribute)Return an immutable copy of allAttributeModifiers for a givenAttribute@NotNull com.google.common.collect.Multimap<Attribute,AttributeModifier>ItemMeta. getAttributeModifiers(@NotNull 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 AttributeModifier Modifier and Type Method Description booleanItemMeta. addAttributeModifier(@NotNull Attribute attribute, @NotNull AttributeModifier modifier)Add an Attribute and it's Modifier.booleanItemMeta. removeAttributeModifier(@NotNull Attribute attribute, @NotNull AttributeModifier modifier)Remove a specificAttributeandAttributeModifier.Method parameters in org.bukkit.inventory.meta with type arguments of type AttributeModifier Modifier and Type Method Description voidItemMeta. setAttributeModifiers(@Nullable com.google.common.collect.Multimap<Attribute,AttributeModifier> attributeModifiers)Set allAttributes and theirAttributeModifiers.
-