Enum Class AttributeLegacy
- All Implemented Interfaces:
Serializable
,Comparable<AttributeLegacy>
,Constable
An enum which represents the minecraft attributes.
Only useful for Minecraft lower to 1.9
- Version:
- 3.4
- Author:
- EpiCanard
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
static AttributeLegacy
valueFromName
(String name) Retrieve an AttributeLegacy from its namestatic AttributeLegacy
Returns the enum constant of this class with the specified name.static AttributeLegacy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GENERIC_MAX_HEALTH
-
GENERIC_FOLLOW_RANGE
-
GENERIC_KNOCKBACK_RESISTANCE
-
GENERIC_MOVEMENT_SPEED
-
GENERIC_FLYING_SPEED
-
GENERIC_ATTACK_DAMAGE
-
GENERIC_ATTACK_SPEED
-
GENERIC_ARMOR
-
GENERIC_ARMOR_TOUGHNESS
-
GENERIC_LUCK
-
HORSE_JUMP_STRENGTH
-
ZOMBIE_SPAWN_REINFORCEMENTS
-
-
Method Details
-
values
Returns 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
-
valueOf
Returns 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 nameNullPointerException
- if the argument is null
-
getName
-
valueFromName
Retrieve an AttributeLegacy from its name- Parameters:
name
- Name of attribute to find- Returns:
- the AttributeLegacy matching or null
-