Uses of Class
org.bukkit.attribute.AttributeModifier
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Classes relevant to attributes.
Classes involved in manipulating player inventories and item interactions.
The interfaces used when manipulating extra data can can be stored inside
item stacks
.Classes to represent various
potion
properties and manipulation.-
Uses of AttributeModifier in org.bukkit
Modifier and TypeMethodDescriptionMaterial.getDefaultAttributeModifiers
(@NotNull EquipmentSlot slot) Return an immutable copy of all defaultAttribute
s and theirAttributeModifier
s for a givenEquipmentSlot
.UnsafeValues.getDefaultAttributeModifiers
(Material material, EquipmentSlot slot) Deprecated.Material.getItemAttributes
(@NotNull EquipmentSlot equipmentSlot) Deprecated.UnsafeValues.getItemAttributes
(@NotNull Material material, @NotNull EquipmentSlot equipmentSlot) Deprecated.Returns an immutable multimap of attributes for the material and slot. -
Uses of AttributeModifier in org.bukkit.attribute
Modifier and TypeMethodDescriptionstatic @NotNull AttributeModifier
AttributeModifier.deserialize
(@NotNull Map<String, Object> args) AttributeInstance.getModifier
(UUID uuid) Gets the modifier with the corresponding UUID.Modifier and TypeMethodDescriptionAttributeInstance.getModifiers()
Get all modifiers present on this instance.Modifier and TypeMethodDescriptionvoid
AttributeInstance.addModifier
(@NotNull AttributeModifier modifier) Add a modifier to this instance.void
AttributeInstance.addTransientModifier
(@NotNull AttributeModifier modifier) Add a transient modifier to this instance.void
AttributeInstance.removeModifier
(@NotNull AttributeModifier modifier) Remove a modifier from this instance. -
Uses of AttributeModifier in org.bukkit.inventory
Modifier and TypeMethodDescriptionItemStack.getAttributeModifiers()
Return an immutable copy of all Attributes and their modifiers in this ItemMeta.
Returns null if none exist.ItemStack.getAttributeModifiers
(@NotNull Attribute attribute) Return an immutable copy of allAttributeModifier
s for a givenAttribute
ItemStack.getAttributeModifiers
(@Nullable 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.Modifier and TypeMethodDescriptionboolean
ItemStack.addAttributeModifier
(@NotNull Attribute attribute, @NotNull AttributeModifier modifier) Add an Attribute and it's Modifier.boolean
ItemStack.removeAttributeModifier
(@NotNull Attribute attribute, @NotNull AttributeModifier modifier) Remove a specificAttribute
andAttributeModifier
.Modifier and TypeMethodDescriptionvoid
ItemStack.setAttributeModifiers
(@Nullable Multimap<Attribute, AttributeModifier> attributeModifiers) Set allAttribute
s and theirAttributeModifier
s. -
Uses of AttributeModifier in org.bukkit.inventory.meta
Modifier and TypeMethodDescriptionItemMeta.getAttributeModifiers()
Return an immutable copy of all Attributes and their modifiers in this ItemMeta.
Returns null if none exist.ItemMeta.getAttributeModifiers
(@NotNull Attribute attribute) Return an immutable copy of allAttributeModifier
s for a givenAttribute
ItemMeta.getAttributeModifiers
(@NotNull EquipmentSlot slot) Return an immutable copy of allAttribute
s and theirAttributeModifier
s for a givenEquipmentSlot
.
AnyAttributeModifier
that does have a givenEquipmentSlot
will be returned.Modifier and TypeMethodDescriptionboolean
ItemMeta.addAttributeModifier
(@NotNull Attribute attribute, @NotNull AttributeModifier modifier) Add an Attribute and it's Modifier.boolean
ItemMeta.removeAttributeModifier
(@NotNull Attribute attribute, @NotNull AttributeModifier modifier) Remove a specificAttribute
andAttributeModifier
.Modifier and TypeMethodDescriptionvoid
ItemMeta.setAttributeModifiers
(@Nullable Multimap<Attribute, AttributeModifier> attributeModifiers) Set allAttribute
s and theirAttributeModifier
s. -
Uses of AttributeModifier in org.bukkit.potion
Modifier and TypeMethodDescriptionabstract Map<Attribute,
AttributeModifier> PotionEffectType.getEffectAttributes()
Gets the effect attributes in an immutable map.PotionEffectTypeWrapper.getEffectAttributes()
Deprecated.
Material.getDefaultAttributeModifiers(EquipmentSlot)