Package org.bukkit.attribute
Enum Attribute
- All Implemented Interfaces:
- Serializable,- Comparable<Attribute>,- Constable,- Keyed
public enum Attribute extends Enum<Attribute> implements Keyed
Types of attributes which may be present on an 
Attributable.- 
Nested Class Summary
- 
Enum Constant SummaryEnum Constants Enum Constant Description GENERIC_ARMORArmor bonus of an Entity.GENERIC_ARMOR_TOUGHNESSArmor durability bonus 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_FLYING_SPEEDFlying speed of an Entity.GENERIC_FOLLOW_RANGERange at which an Entity will follow others.GENERIC_KNOCKBACK_RESISTANCEResistance of an Entity to knockback.GENERIC_LUCKLuck bonus of an Entity.GENERIC_MAX_HEALTHMaximum health of an Entity.GENERIC_MOVEMENT_SPEEDMovement speed of an Entity.HORSE_JUMP_STRENGTHStrength with which a horse will jump.ZOMBIE_SPAWN_REINFORCEMENTSChance of a zombie to spawn reinforcements.
- 
Method SummaryModifier and Type Method Description NamespacedKeygetKey()Return the namespaced identifier for this object.static AttributevalueOf(String name)Returns the enum constant of this type with the specified name.static Attribute[]values()Returns an array containing the constants of this enum type, 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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
getKeyDescription copied from interface:KeyedReturn the namespaced identifier for this object.
 
-