Uses of Interface
org.bukkit.attribute.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.datacomponent.item
Modifier and TypeMethodDescriptionItemAttributeModifiers.Entry.attribute()
Gets the target attribute for the paired modifier.Modifier and TypeMethodDescriptionItemAttributeModifiers.Builder.addModifier
(Attribute attribute, AttributeModifier modifier) Adds a modifier to this builder.ItemAttributeModifiers.Builder.addModifier
(Attribute attribute, AttributeModifier modifier, EquipmentSlotGroup equipmentSlotGroup) Adds a modifier to this builder. -
Uses of Attribute in io.papermc.paper.registry
Modifier and TypeFieldDescriptionstatic final RegistryKey
<Attribute> RegistryKey.ATTRIBUTE
Built-in registry for attributes. -
Uses of Attribute in io.papermc.paper.registry.keys
Modifier and TypeFieldDescriptionAttributeKeys.ARMOR
minecraft:armor
AttributeKeys.ARMOR_TOUGHNESS
minecraft:armor_toughness
AttributeKeys.ATTACK_DAMAGE
minecraft:attack_damage
AttributeKeys.ATTACK_KNOCKBACK
minecraft:attack_knockback
AttributeKeys.ATTACK_SPEED
minecraft:attack_speed
AttributeKeys.BLOCK_BREAK_SPEED
minecraft:block_break_speed
AttributeKeys.BLOCK_INTERACTION_RANGE
minecraft:block_interaction_range
AttributeKeys.BURNING_TIME
minecraft:burning_time
AttributeKeys.ENTITY_INTERACTION_RANGE
minecraft:entity_interaction_range
AttributeKeys.EXPLOSION_KNOCKBACK_RESISTANCE
minecraft:explosion_knockback_resistance
AttributeKeys.FALL_DAMAGE_MULTIPLIER
minecraft:fall_damage_multiplier
AttributeKeys.FLYING_SPEED
minecraft:flying_speed
AttributeKeys.FOLLOW_RANGE
minecraft:follow_range
AttributeKeys.GRAVITY
minecraft:gravity
AttributeKeys.JUMP_STRENGTH
minecraft:jump_strength
AttributeKeys.KNOCKBACK_RESISTANCE
minecraft:knockback_resistance
AttributeKeys.LUCK
minecraft:luck
AttributeKeys.MAX_ABSORPTION
minecraft:max_absorption
AttributeKeys.MAX_HEALTH
minecraft:max_health
AttributeKeys.MINING_EFFICIENCY
minecraft:mining_efficiency
AttributeKeys.MOVEMENT_EFFICIENCY
minecraft:movement_efficiency
AttributeKeys.MOVEMENT_SPEED
minecraft:movement_speed
AttributeKeys.OXYGEN_BONUS
minecraft:oxygen_bonus
AttributeKeys.SAFE_FALL_DISTANCE
minecraft:safe_fall_distance
AttributeKeys.SCALE
minecraft:scale
AttributeKeys.SNEAKING_SPEED
minecraft:sneaking_speed
AttributeKeys.SPAWN_REINFORCEMENTS
minecraft:spawn_reinforcements
AttributeKeys.STEP_HEIGHT
minecraft:step_height
AttributeKeys.SUBMERGED_MINING_SPEED
minecraft:submerged_mining_speed
AttributeKeys.SWEEPING_DAMAGE_RATIO
minecraft:sweeping_damage_ratio
AttributeKeys.TEMPT_RANGE
minecraft:tempt_range
AttributeKeys.WATER_MOVEMENT_EFFICIENCY
minecraft:water_movement_efficiency
-
Uses of Attribute in org.bukkit
Modifier 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, 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.Modifier and TypeMethodDescriptionUnsafeValues.getTranslationKey
(Attribute attribute) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Attribute in org.bukkit.attribute
Modifier and TypeFieldDescriptionstatic final Attribute
Attribute.ARMOR
Armor bonus of an Entity.static final Attribute
Attribute.ARMOR_TOUGHNESS
Armor durability bonus of an Entity.static final Attribute
Attribute.ATTACK_DAMAGE
Attack damage of an Entity.static final Attribute
Attribute.ATTACK_KNOCKBACK
Attack knockback of an Entity.static final Attribute
Attribute.ATTACK_SPEED
Attack speed of an Entity.static final Attribute
Attribute.BLOCK_BREAK_SPEED
Block break speed of a Player.static final Attribute
Attribute.BLOCK_INTERACTION_RANGE
The block reach distance of a Player.static final Attribute
Attribute.BURNING_TIME
How long an entity remains burning after ingition.static final Attribute
Attribute.ENTITY_INTERACTION_RANGE
The entity reach distance of a Player.static final Attribute
Attribute.EXPLOSION_KNOCKBACK_RESISTANCE
Resistance to knockback from explosions.static final Attribute
Attribute.FALL_DAMAGE_MULTIPLIER
The fall damage multiplier of an Entity.static final Attribute
Attribute.FLYING_SPEED
Flying speed of an Entity.static final Attribute
Attribute.FOLLOW_RANGE
Range at which an Entity will follow others.static final Attribute
Attribute.GRAVITY
The gravity applied to an Entity.static final Attribute
Attribute.JUMP_STRENGTH
Strength with which an Entity will jump.static final Attribute
Attribute.KNOCKBACK_RESISTANCE
Resistance of an Entity to knockback.static final Attribute
Attribute.LUCK
Luck bonus of an Entity.static final Attribute
Attribute.MAX_ABSORPTION
Maximum absorption of an Entity.static final Attribute
Attribute.MAX_HEALTH
Maximum health of an Entity.static final Attribute
Attribute.MINING_EFFICIENCY
Mining speed for correct tools.static final Attribute
Attribute.MOVEMENT_EFFICIENCY
Movement speed through difficult terrain.static final Attribute
Attribute.MOVEMENT_SPEED
Movement speed of an Entity.static final Attribute
Attribute.OXYGEN_BONUS
Oxygen use underwater.static final Attribute
Attribute.SAFE_FALL_DISTANCE
The distance which an Entity can fall without damage.static final Attribute
Attribute.SCALE
The relative scale of an Entity.static final Attribute
Attribute.SNEAKING_SPEED
Sneaking speed.static final Attribute
Attribute.SPAWN_REINFORCEMENTS
Chance of a zombie to spawn reinforcements.static final Attribute
Attribute.STEP_HEIGHT
The height which an Entity can walk over.static final Attribute
Attribute.SUBMERGED_MINING_SPEED
Underwater mining speed.static final Attribute
Attribute.SWEEPING_DAMAGE_RATIO
Sweeping damage.static final Attribute
Attribute.TEMPT_RANGE
Range at which mobs will be tempted by items.static final Attribute
Attribute.WATER_MOVEMENT_EFFICIENCY
Movement speed through water.Modifier and TypeMethodDescriptionAttributeInstance.getAttribute()
The attribute pertaining to this instance.Deprecated, for removal: This API element is subject to removal in a future version.only for backwards compatibility, useRegistry.get(NamespacedKey)
instead.Attribute.values()
Deprecated, for removal: This API element is subject to removal in a future version.useIterable.iterator()
.Modifier 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
Modifier 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
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 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.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
.Modifier and TypeMethodDescriptionvoid
ItemMeta.setAttributeModifiers
(@Nullable Multimap<Attribute, AttributeModifier> attributeModifiers) Set allAttribute
s and theirAttributeModifier
s. -
Uses of Attribute in org.bukkit.potion
Modifier and TypeMethodDescriptionabstract Map
<Attribute, AttributeModifier> PotionEffectType.getEffectAttributes()
Gets the effect attributes in an immutable map.PotionEffectTypeWrapper.getEffectAttributes()
Deprecated.Modifier 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)