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
.-
Uses of Attribute in org.bukkit
Modifier and TypeMethodDescriptionMaterial.getDefaultAttributeModifiers
(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.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.static Attribute
Deprecated.static Attribute[]
Attribute.values()
Deprecated.useIterable.iterator()
.Modifier and TypeMethodDescriptionAttributable.getAttribute
(Attribute attribute) Gets the specified attribute instance from the object. -
Uses of Attribute in org.bukkit.inventory
Modifier and TypeMethodDescriptionItemType.getDefaultAttributeModifiers
(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
(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
ItemMeta.addAttributeModifier
(Attribute attribute, AttributeModifier modifier) Add an Attribute and it's Modifier.ItemMeta.getAttributeModifiers
(Attribute attribute) Return an immutable copy of allAttributeModifier
s for a givenAttribute
boolean
ItemMeta.removeAttributeModifier
(Attribute attribute) Remove allAttributeModifier
s associated with the givenAttribute
.boolean
ItemMeta.removeAttributeModifier
(Attribute attribute, AttributeModifier modifier) Remove a specificAttribute
andAttributeModifier
.Modifier and TypeMethodDescriptionvoid
ItemMeta.setAttributeModifiers
(Multimap<Attribute, AttributeModifier> attributeModifiers) Set allAttribute
s and theirAttributeModifier
s.
Registry.get(NamespacedKey)
instead.