Uses of Enum Class
org.bukkit.attribute.Attribute
Packages that use Attribute
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 Attribute in io.papermc.paper.registry
Fields in io.papermc.paper.registry with type parameters of type Attribute -
Uses of Attribute in org.bukkit
Fields in org.bukkit with type parameters of type AttributeMethods in org.bukkit that return types with arguments of type AttributeModifier and TypeMethodDescriptionMaterial.getDefaultAttributeModifiers()
Return an immutable copy of all defaultAttribute
s and theirAttributeModifier
s.Material.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, for removal: This API element is subject to removal in a future version.Methods in org.bukkit with parameters of type AttributeModifier and TypeMethodDescriptionUnsafeValues.getTranslationKey
(Attribute attribute) Deprecated. -
Uses of Attribute in org.bukkit.attribute
Methods in org.bukkit.attribute that return AttributeModifier and TypeMethodDescriptionAttributeInstance.getAttribute()
The attribute pertaining to this instance.static Attribute
Returns the enum constant of this class with the specified name.static Attribute[]
Attribute.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.bukkit.attribute with parameters of type AttributeModifier and TypeMethodDescriptionAttributable.getAttribute
(@NotNull Attribute attribute) Gets the specified attribute instance from the object.void
Attributable.registerAttribute
(@NotNull Attribute attribute) Registers a generic attribute to that attributable instance. -
Uses of Attribute in org.bukkit.inventory
Methods in org.bukkit.inventory that return types with arguments of type AttributeModifier and TypeMethodDescriptionItemType.getDefaultAttributeModifiers()
Return an immutable copy of all defaultAttribute
s and theirAttributeModifier
s.ItemType.getDefaultAttributeModifiers
(@NotNull EquipmentSlot slot) Return an immutable copy of all defaultAttribute
s and theirAttributeModifier
s for a givenEquipmentSlot
. -
Uses of Attribute in org.bukkit.inventory.meta
Methods in org.bukkit.inventory.meta that return types with arguments of type AttributeModifier and TypeMethodDescriptionItemMeta.getAttributeModifiers()
Return an immutable copy of all Attributes and their modifiers in this ItemMeta.
Returns null if none exist.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.Methods in org.bukkit.inventory.meta with parameters of type AttributeModifier and TypeMethodDescriptionboolean
ItemMeta.addAttributeModifier
(@NotNull Attribute attribute, @NotNull AttributeModifier modifier) Add an Attribute and it's Modifier.ItemMeta.getAttributeModifiers
(@NotNull Attribute attribute) Return an immutable copy of allAttributeModifier
s for a givenAttribute
boolean
ItemMeta.removeAttributeModifier
(@NotNull Attribute attribute) Remove allAttributeModifier
s associated with the givenAttribute
.boolean
ItemMeta.removeAttributeModifier
(@NotNull Attribute attribute, @NotNull AttributeModifier modifier) Remove a specificAttribute
andAttributeModifier
.Method parameters in org.bukkit.inventory.meta with type arguments of type AttributeModifier and TypeMethodDescriptionvoid
ItemMeta.setAttributeModifiers
(@Nullable Multimap<Attribute, AttributeModifier> attributeModifiers) Set allAttribute
s and theirAttributeModifier
s. -
Uses of Attribute in org.bukkit.potion
Methods in org.bukkit.potion that return types with arguments of type AttributeModifier and TypeMethodDescriptionabstract Map
<Attribute, AttributeModifier> PotionEffectType.getEffectAttributes()
Gets the effect attributes in an immutable map.PotionEffectTypeWrapper.getEffectAttributes()
Deprecated.Methods in org.bukkit.potion with parameters of type AttributeModifier and TypeMethodDescriptionabstract double
PotionEffectType.getAttributeModifierAmount
(Attribute attribute, int effectAmplifier) Gets the true modifier amount based on the effect amplifier.double
PotionEffectTypeWrapper.getAttributeModifierAmount
(Attribute attribute, int effectAmplifier) Deprecated.
Material.getDefaultAttributeModifiers(EquipmentSlot)