Package org.bukkit.attribute
Enum Attribute
- All Implemented Interfaces:
Serializable
,Comparable<Attribute>
,java.lang.constant.Constable
,Keyed
Types of attributes which may be present on an
Attributable
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum 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 Summary
-
Enum Constant Details
-
GENERIC_MAX_HEALTH
Maximum health of an Entity. -
GENERIC_FOLLOW_RANGE
Range at which an Entity will follow others. -
GENERIC_KNOCKBACK_RESISTANCE
Resistance of an Entity to knockback. -
GENERIC_MOVEMENT_SPEED
Movement speed of an Entity. -
GENERIC_FLYING_SPEED
Flying speed of an Entity. -
GENERIC_ATTACK_DAMAGE
Attack damage of an Entity. -
GENERIC_ATTACK_KNOCKBACK
Attack knockback of an Entity. -
GENERIC_ATTACK_SPEED
Attack speed of an Entity. -
GENERIC_ARMOR
Armor bonus of an Entity. -
GENERIC_ARMOR_TOUGHNESS
Armor durability bonus of an Entity. -
GENERIC_LUCK
Luck bonus of an Entity. -
HORSE_JUMP_STRENGTH
Strength with which a horse will jump. -
ZOMBIE_SPAWN_REINFORCEMENTS
Chance of a zombie to spawn reinforcements.
-
-
Method Details
-
values
Returns 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
-
valueOf
Returns 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 nameNullPointerException
- if the argument is null
-
getKey
Description copied from interface:Keyed
Return the namespaced identifier for this object.
-