Package org.bukkit.attribute
Interface Attribute
- All Superinterfaces:
- Comparable<Attribute>,- Keyed,- OldEnum<Attribute>,- RegistryAware,- Translatable
Types of attributes which may be present on an 
Attributable.- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final AttributeArmor bonus of an Entity.static final AttributeArmor durability bonus of an Entity.static final AttributeAttack damage of an Entity.static final AttributeAttack knockback of an Entity.static final AttributeAttack speed of an Entity.static final AttributeBlock break speed of a Player.static final AttributeThe block reach distance of a Player.static final AttributeHow long an entity remains burning after ignition.static final AttributeThe entity reach distance of a Player.static final AttributeResistance to knockback from explosions.static final AttributeThe fall damage multiplier of an Entity.static final AttributeFlying speed of an Entity.static final AttributeRange at which an Entity will follow others.static final AttributeThe gravity applied to an Entity.static final AttributeStrength with which an Entity will jump.static final AttributeResistance of an Entity to knockback.static final AttributeLuck bonus of an Entity.static final AttributeMaximum absorption of an Entity.static final AttributeMaximum health of an Entity.static final AttributeMining speed for correct tools.static final AttributeMovement speed through difficult terrain.static final AttributeMovement speed of an Entity.static final AttributeOxygen use underwater.static final AttributeThe distance which an Entity can fall without damage.static final AttributeThe relative scale of an Entity.static final AttributeSneaking speed.static final AttributeChance of a zombie to spawn reinforcements.static final AttributeThe height which an Entity can walk over.static final AttributeUnderwater mining speed.static final AttributeSweeping damage.static final AttributeRange at which mobs will be tempted by items.static final AttributeMovement speed through water.
- 
Method SummaryModifier and TypeMethodDescriptiongetKey()Deprecated.static AttributeDeprecated.only for backwards compatibility, useRegistry.get(NamespacedKey)instead.static Attribute[]values()Deprecated.useIterable.iterator().Methods inherited from interface org.bukkit.registry.RegistryAwaregetKeyOrNull, getKeyOrThrow, isRegisteredMethods inherited from interface org.bukkit.TranslatablegetTranslationKey
- 
Field Details- 
MAX_HEALTHMaximum health of an Entity.
- 
FOLLOW_RANGERange at which an Entity will follow others.
- 
KNOCKBACK_RESISTANCEResistance of an Entity to knockback.
- 
MOVEMENT_SPEEDMovement speed of an Entity.
- 
FLYING_SPEEDFlying speed of an Entity.
- 
ATTACK_DAMAGEAttack damage of an Entity.
- 
ATTACK_KNOCKBACKAttack knockback of an Entity.
- 
ATTACK_SPEEDAttack speed of an Entity.
- 
ARMORArmor bonus of an Entity.
- 
ARMOR_TOUGHNESSArmor durability bonus of an Entity.
- 
FALL_DAMAGE_MULTIPLIERThe fall damage multiplier of an Entity.
- 
LUCKLuck bonus of an Entity.
- 
MAX_ABSORPTIONMaximum absorption of an Entity.
- 
SAFE_FALL_DISTANCEThe distance which an Entity can fall without damage.
- 
SCALEThe relative scale of an Entity.
- 
STEP_HEIGHTThe height which an Entity can walk over.
- 
GRAVITYThe gravity applied to an Entity.
- 
JUMP_STRENGTHStrength with which an Entity will jump.
- 
BURNING_TIMEHow long an entity remains burning after ignition.
- 
EXPLOSION_KNOCKBACK_RESISTANCEResistance to knockback from explosions.
- 
MOVEMENT_EFFICIENCYMovement speed through difficult terrain.
- 
OXYGEN_BONUSOxygen use underwater.
- 
WATER_MOVEMENT_EFFICIENCYMovement speed through water.
- 
TEMPT_RANGERange at which mobs will be tempted by items.
- 
BLOCK_INTERACTION_RANGEThe block reach distance of a Player.
- 
ENTITY_INTERACTION_RANGEThe entity reach distance of a Player.
- 
BLOCK_BREAK_SPEEDBlock break speed of a Player.
- 
MINING_EFFICIENCYMining speed for correct tools.
- 
SNEAKING_SPEEDSneaking speed.
- 
SUBMERGED_MINING_SPEEDUnderwater mining speed.
- 
SWEEPING_DAMAGE_RATIOSweeping damage.
- 
SPAWN_REINFORCEMENTSChance of a zombie to spawn reinforcements.
 
- 
- 
Method Details- 
getKeyDeprecated.A key might not always be present, useRegistryAware.getKeyOrThrow()instead.Return the namespaced identifier for this object.
- 
valueOfDeprecated.only for backwards compatibility, useRegistry.get(NamespacedKey)instead.- Parameters:
- name- of the attribute.
- Returns:
- the attribute with the given name.
 
- 
valuesDeprecated.useIterable.iterator().- Returns:
- an array of all known attributes.
 
 
- 
RegistryAware.getKeyOrThrow()instead.