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.
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 io.papermc.paper.datacomponent.item
Methods in io.papermc.paper.datacomponent.item that return AttributeModifierModifier and TypeMethodDescriptionItemAttributeModifiers.Entry.modifier()The modifier for the paired attribute.Methods in io.papermc.paper.datacomponent.item with parameters of type AttributeModifierModifier and TypeMethodDescriptiondefault ItemAttributeModifiers.BuilderItemAttributeModifiers.Builder.addModifier(Attribute attribute, AttributeModifier modifier) Adds a modifier to this builder.default ItemAttributeModifiers.BuilderItemAttributeModifiers.Builder.addModifier(Attribute attribute, AttributeModifier modifier, AttributeModifierDisplay display) Adds a modifier to this builder.default ItemAttributeModifiers.BuilderItemAttributeModifiers.Builder.addModifier(Attribute attribute, AttributeModifier modifier, EquipmentSlotGroup equipmentSlotGroup) Adds a modifier to this builder.ItemAttributeModifiers.Builder.addModifier(Attribute attribute, AttributeModifier modifier, EquipmentSlotGroup equipmentSlotGroup, AttributeModifierDisplay display) Adds a modifier to this builder. -
Uses of AttributeModifier in org.bukkit
Methods in org.bukkit that return types with arguments of type AttributeModifierModifier and TypeMethodDescriptionMaterial.getDefaultAttributeModifiers()Return an immutable copy of all defaultAttributes and theirAttributeModifiers.Material.getDefaultAttributeModifiers(@NotNull EquipmentSlot slot) Return an immutable copy of all defaultAttributes and theirAttributeModifiers for a givenEquipmentSlot.UnsafeValues.getDefaultAttributeModifiers(Material material, EquipmentSlot slot) Deprecated, for removal: This API element is subject to removal in a future version.Material.getItemAttributes(@NotNull EquipmentSlot equipmentSlot) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of AttributeModifier in org.bukkit.attribute
Methods in org.bukkit.attribute that return AttributeModifierModifier and TypeMethodDescriptionstatic @NotNull AttributeModifierAttributeModifier.deserialize(@NotNull Map<String, Object> args) AttributeInstance.getModifier(UUID uuid) Deprecated, for removal: This API element is subject to removal in a future version.useAttributeInstance.getModifier(net.kyori.adventure.key.Key), modifiers are no longer stored by UUIDAttributeInstance.getModifier(Key key) Gets the modifier with the corresponding key.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(@NotNull AttributeModifier modifier) Add a modifier to this instance.voidAttributeInstance.addTransientModifier(@NotNull AttributeModifier modifier) Add a transient modifier to this instance.voidAttributeInstance.removeModifier(@NotNull AttributeModifier modifier) Remove a modifier from this instance. -
Uses of AttributeModifier in org.bukkit.inventory
Methods in org.bukkit.inventory that return types with arguments of type AttributeModifierModifier and TypeMethodDescriptionItemType.getDefaultAttributeModifiers()Return an immutable copy of all defaultAttributes and theirAttributeModifiers.ItemType.getDefaultAttributeModifiers(EquipmentSlot slot) Return an immutable copy of all defaultAttributes and theirAttributeModifiers for a givenEquipmentSlot. -
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(@NotNull Attribute attribute) Return an immutable copy of allAttributeModifiers for a givenAttributeItemMeta.getAttributeModifiers(@NotNull EquipmentSlot slot) Return an immutable copy of allAttributes and theirAttributeModifiers for a givenEquipmentSlot.
AnyAttributeModifierthat does have a givenEquipmentSlotwill be returned.Methods in org.bukkit.inventory.meta with parameters of type AttributeModifierModifier and TypeMethodDescriptionbooleanItemMeta.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 AttributeModifierModifier and TypeMethodDescriptionvoidItemMeta.setAttributeModifiers(@Nullable Multimap<Attribute, AttributeModifier> attributeModifiers) Set allAttributes and theirAttributeModifiers. -
Uses of AttributeModifier in org.bukkit.potion
Methods in org.bukkit.potion that return types with arguments of type AttributeModifierModifier and TypeMethodDescriptionabstract Map<Attribute, AttributeModifier> PotionEffectType.getEffectAttributes()Gets the effect attributes in an immutable map.PotionEffectTypeWrapper.getEffectAttributes()Deprecated, for removal: This API element is subject to removal in a future version.
Material.getDefaultAttributeModifiers(EquipmentSlot)