Package org.bukkit.attribute
Enum Attribute
- java.lang.Object
-
- java.lang.Enum<Attribute>
-
- org.bukkit.attribute.Attribute
-
- All Implemented Interfaces:
Serializable
,Comparable<Attribute>
public enum Attribute extends Enum<Attribute>
Types of attributes which may be present on anAttributable
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GENERIC_ARMOR
Armor bonus of an Entity.GENERIC_ARMOR_TOUGHNESS
Armor durability bonus of an Entity.GENERIC_ATTACK_DAMAGE
Attack damage of an Entity.GENERIC_ATTACK_SPEED
Attack speed of an Entity.GENERIC_FLYING_SPEED
Flying speed of an Entity.GENERIC_FOLLOW_RANGE
Range at which an Entity will follow others.GENERIC_KNOCKBACK_RESISTANCE
Resistance of an Entity to knockback.GENERIC_LUCK
Luck bonus of an Entity.GENERIC_MAX_HEALTH
Maximum health of an Entity.GENERIC_MOVEMENT_SPEED
Movement speed of an Entity.HORSE_JUMP_STRENGTH
Strength with which a horse will jump.ZOMBIE_SPAWN_REINFORCEMENTS
Chance of a zombie to spawn reinforcements.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Attribute
valueOf(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 Detail
-
GENERIC_MAX_HEALTH
public static final Attribute GENERIC_MAX_HEALTH
Maximum health of an Entity.
-
GENERIC_FOLLOW_RANGE
public static final Attribute GENERIC_FOLLOW_RANGE
Range at which an Entity will follow others.
-
GENERIC_KNOCKBACK_RESISTANCE
public static final Attribute GENERIC_KNOCKBACK_RESISTANCE
Resistance of an Entity to knockback.
-
GENERIC_MOVEMENT_SPEED
public static final Attribute GENERIC_MOVEMENT_SPEED
Movement speed of an Entity.
-
GENERIC_FLYING_SPEED
public static final Attribute GENERIC_FLYING_SPEED
Flying speed of an Entity.
-
GENERIC_ATTACK_DAMAGE
public static final Attribute GENERIC_ATTACK_DAMAGE
Attack damage of an Entity.
-
GENERIC_ATTACK_SPEED
public static final Attribute GENERIC_ATTACK_SPEED
Attack speed of an Entity.
-
GENERIC_ARMOR
public static final Attribute GENERIC_ARMOR
Armor bonus of an Entity.
-
GENERIC_ARMOR_TOUGHNESS
public static final Attribute GENERIC_ARMOR_TOUGHNESS
Armor durability bonus of an Entity.
-
GENERIC_LUCK
public static final Attribute GENERIC_LUCK
Luck bonus of an Entity.
-
HORSE_JUMP_STRENGTH
public static final Attribute HORSE_JUMP_STRENGTH
Strength with which a horse will jump.
-
ZOMBIE_SPAWN_REINFORCEMENTS
public static final Attribute ZOMBIE_SPAWN_REINFORCEMENTS
Chance of a zombie to spawn reinforcements.
-
-
Method Detail
-
values
public static Attribute[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Attribute c : Attribute.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Attribute valueOf(String name)
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
-
-