Package org.bukkit.attribute
Enum Class Attribute
- All Implemented Interfaces:
- Serializable,- Comparable<Attribute>,- Constable,- net.kyori.adventure.key.Keyed,- Translatable,- Keyed
Types of attributes which may be present on an 
Attributable.- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionArmor bonus of an Entity.Armor durability bonus of an Entity.Attack damage of an Entity.Attack knockback of an Entity.Attack speed of an Entity.Flying speed of an Entity.Range at which an Entity will follow others.Resistance of an Entity to knockback.Luck bonus of an Entity.Maximum health of an Entity.Movement speed of an Entity.Strength with which a horse will jump.Chance of a zombie to spawn reinforcements.
- 
Method SummaryModifier and TypeMethodDescriptiongetKey()Return the namespaced identifier for this object.Gets the translation key.static AttributeReturns the enum constant of this class with the specified name.static Attribute[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
GENERIC_MAX_HEALTHMaximum health of an Entity.
- 
GENERIC_FOLLOW_RANGERange at which an Entity will follow others.
- 
GENERIC_KNOCKBACK_RESISTANCEResistance of an Entity to knockback.
- 
GENERIC_MOVEMENT_SPEEDMovement speed of an Entity.
- 
GENERIC_FLYING_SPEEDFlying speed of an Entity.
- 
GENERIC_ATTACK_DAMAGEAttack damage of an Entity.
- 
GENERIC_ATTACK_KNOCKBACKAttack knockback of an Entity.
- 
GENERIC_ATTACK_SPEEDAttack speed of an Entity.
- 
GENERIC_ARMORArmor bonus of an Entity.
- 
GENERIC_ARMOR_TOUGHNESSArmor durability bonus of an Entity.
- 
GENERIC_LUCKLuck bonus of an Entity.
- 
HORSE_JUMP_STRENGTHStrength with which a horse will jump.
- 
ZOMBIE_SPAWN_REINFORCEMENTSChance of a zombie to spawn reinforcements.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
getKeyDescription copied from interface:KeyedReturn the namespaced identifier for this object.
- 
translationKeyDescription copied from interface:net.kyori.adventure.translation.TranslatableGets the translation key.- Specified by:
- translationKeyin interface- Translatable
- Returns:
- the translation key
 
 
-