Uses of Interface
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.datacomponent.item
Methods in io.papermc.paper.datacomponent.item that return AttributeModifier and TypeMethodDescriptionItemAttributeModifiers.Entry.attribute()Gets the target attribute for the paired modifier.Methods in io.papermc.paper.datacomponent.item with parameters of type AttributeModifier 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 Attribute in io.papermc.paper.registry
Fields in io.papermc.paper.registry with type parameters of type AttributeModifier and TypeFieldDescriptionstatic final RegistryKey<Attribute> RegistryKey.ATTRIBUTEBuilt-in registry for attributes. -
Uses of Attribute in io.papermc.paper.registry.keys
Fields in io.papermc.paper.registry.keys with type parameters of type AttributeModifier and TypeFieldDescriptionAttributeKeys.ARMORminecraft:armorAttributeKeys.ARMOR_TOUGHNESSminecraft:armor_toughnessAttributeKeys.ATTACK_DAMAGEminecraft:attack_damageAttributeKeys.ATTACK_KNOCKBACKminecraft:attack_knockbackAttributeKeys.ATTACK_SPEEDminecraft:attack_speedAttributeKeys.BLOCK_BREAK_SPEEDminecraft:block_break_speedAttributeKeys.BLOCK_INTERACTION_RANGEminecraft:block_interaction_rangeAttributeKeys.BURNING_TIMEminecraft:burning_timeAttributeKeys.CAMERA_DISTANCEminecraft:camera_distanceAttributeKeys.ENTITY_INTERACTION_RANGEminecraft:entity_interaction_rangeAttributeKeys.EXPLOSION_KNOCKBACK_RESISTANCEminecraft:explosion_knockback_resistanceAttributeKeys.FALL_DAMAGE_MULTIPLIERminecraft:fall_damage_multiplierAttributeKeys.FLYING_SPEEDminecraft:flying_speedAttributeKeys.FOLLOW_RANGEminecraft:follow_rangeAttributeKeys.GRAVITYminecraft:gravityAttributeKeys.JUMP_STRENGTHminecraft:jump_strengthAttributeKeys.KNOCKBACK_RESISTANCEminecraft:knockback_resistanceAttributeKeys.LUCKminecraft:luckAttributeKeys.MAX_ABSORPTIONminecraft:max_absorptionAttributeKeys.MAX_HEALTHminecraft:max_healthAttributeKeys.MINING_EFFICIENCYminecraft:mining_efficiencyAttributeKeys.MOVEMENT_EFFICIENCYminecraft:movement_efficiencyAttributeKeys.MOVEMENT_SPEEDminecraft:movement_speedAttributeKeys.OXYGEN_BONUSminecraft:oxygen_bonusAttributeKeys.SAFE_FALL_DISTANCEminecraft:safe_fall_distanceAttributeKeys.SCALEminecraft:scaleAttributeKeys.SNEAKING_SPEEDminecraft:sneaking_speedAttributeKeys.SPAWN_REINFORCEMENTSminecraft:spawn_reinforcementsAttributeKeys.STEP_HEIGHTminecraft:step_heightAttributeKeys.SUBMERGED_MINING_SPEEDminecraft:submerged_mining_speedAttributeKeys.SWEEPING_DAMAGE_RATIOminecraft:sweeping_damage_ratioAttributeKeys.TEMPT_RANGEminecraft:tempt_rangeAttributeKeys.WATER_MOVEMENT_EFFICIENCYminecraft:water_movement_efficiencyAttributeKeys.WAYPOINT_RECEIVE_RANGEminecraft:waypoint_receive_rangeAttributeKeys.WAYPOINT_TRANSMIT_RANGEminecraft:waypoint_transmit_range -
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 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.Methods in org.bukkit with parameters of type AttributeModifier 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
Fields in org.bukkit.attribute declared as AttributeModifier and TypeFieldDescriptionstatic final AttributeAttribute.ARMORArmor bonus of an Entity.static final AttributeAttribute.ARMOR_TOUGHNESSArmor durability bonus of an Entity.static final AttributeAttribute.ATTACK_DAMAGEAttack damage of an Entity.static final AttributeAttribute.ATTACK_KNOCKBACKAttack knockback of an Entity.static final AttributeAttribute.ATTACK_SPEEDAttack speed of an Entity.static final AttributeAttribute.BLOCK_BREAK_SPEEDBlock break speed of a Player.static final AttributeAttribute.BLOCK_INTERACTION_RANGEThe block reach distance of a Player.static final AttributeAttribute.BURNING_TIMEHow long an entity remains burning after ignition.static final AttributeAttribute.CAMERA_DISTANCEThe camera distance of a player to their own entity.static final AttributeAttribute.ENTITY_INTERACTION_RANGEThe entity reach distance of a Player.static final AttributeAttribute.EXPLOSION_KNOCKBACK_RESISTANCEResistance to knockback from explosions.static final AttributeAttribute.FALL_DAMAGE_MULTIPLIERThe fall damage multiplier of an Entity.static final AttributeAttribute.FLYING_SPEEDFlying speed of an Entity.static final AttributeAttribute.FOLLOW_RANGERange at which an Entity will follow others.static final AttributeAttribute.GRAVITYThe gravity applied to an Entity.static final AttributeAttribute.JUMP_STRENGTHStrength with which an Entity will jump.static final AttributeAttribute.KNOCKBACK_RESISTANCEResistance of an Entity to knockback.static final AttributeAttribute.LUCKLuck bonus of an Entity.static final AttributeAttribute.MAX_ABSORPTIONMaximum absorption of an Entity.static final AttributeAttribute.MAX_HEALTHMaximum health of an Entity.static final AttributeAttribute.MINING_EFFICIENCYMining speed for correct tools.static final AttributeAttribute.MOVEMENT_EFFICIENCYMovement speed through difficult terrain.static final AttributeAttribute.MOVEMENT_SPEEDMovement speed of an Entity.static final AttributeAttribute.OXYGEN_BONUSOxygen use underwater.static final AttributeAttribute.SAFE_FALL_DISTANCEThe distance which an Entity can fall without damage.static final AttributeAttribute.SCALEThe relative scale of an Entity.static final AttributeAttribute.SNEAKING_SPEEDSneaking speed.static final AttributeAttribute.SPAWN_REINFORCEMENTSChance of a zombie to spawn reinforcements.static final AttributeAttribute.STEP_HEIGHTThe height which an Entity can walk over.static final AttributeAttribute.SUBMERGED_MINING_SPEEDUnderwater mining speed.static final AttributeAttribute.SWEEPING_DAMAGE_RATIOSweeping damage.static final AttributeAttribute.TEMPT_RANGERange at which mobs will be tempted by items.static final AttributeAttribute.WATER_MOVEMENT_EFFICIENCYMovement speed through water.static final AttributeAttribute.WAYPOINT_RECEIVE_RANGEAttribute controlling the range an entity receives other waypoints from.static final AttributeAttribute.WAYPOINT_TRANSMIT_RANGEAttribute controlling the range an entity transmits itself as a waypoint.Methods in org.bukkit.attribute that return AttributeModifier 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().Methods in org.bukkit.attribute with parameters of type AttributeModifier and TypeMethodDescriptionAttributable.getAttribute(@NotNull Attribute attribute) Gets the specified attribute instance from the object.voidAttributable.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 defaultAttributes and theirAttributeModifiers.ItemType.getDefaultAttributeModifiers(EquipmentSlot slot) Return an immutable copy of all defaultAttributes and theirAttributeModifiers 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 allAttributes and theirAttributeModifiers for a givenEquipmentSlot.
AnyAttributeModifierthat does have a givenEquipmentSlotwill be returned.Methods in org.bukkit.inventory.meta with parameters of type AttributeModifier and TypeMethodDescriptionbooleanItemMeta.addAttributeModifier(@NotNull Attribute attribute, @NotNull AttributeModifier modifier) Add an Attribute and it's Modifier.ItemMeta.getAttributeModifiers(@NotNull Attribute attribute) Return an immutable copy of allAttributeModifiers for a givenAttributebooleanItemMeta.removeAttributeModifier(@NotNull Attribute attribute) Remove allAttributeModifiers associated with the givenAttribute.booleanItemMeta.removeAttributeModifier(@NotNull Attribute attribute, @NotNull AttributeModifier modifier) Remove a specificAttributeandAttributeModifier.Method parameters in org.bukkit.inventory.meta with type arguments of type AttributeModifier and TypeMethodDescriptionvoidItemMeta.setAttributeModifiers(@Nullable Multimap<Attribute, AttributeModifier> attributeModifiers) Set allAttributes and theirAttributeModifiers. -
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, for removal: This API element is subject to removal in a future version.Methods in org.bukkit.potion with parameters of type AttributeModifier and TypeMethodDescriptionabstract doublePotionEffectType.getAttributeModifierAmount(Attribute attribute, int effectAmplifier) Gets the true modifier amount based on the effect amplifier.doublePotionEffectTypeWrapper.getAttributeModifierAmount(Attribute attribute, int effectAmplifier) Deprecated, for removal: This API element is subject to removal in a future version.
Material.getDefaultAttributeModifiers(EquipmentSlot)