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
Enum ConstantsEnum ConstantDescriptionRepresents the legacy generic armor attribute.Represents the legacy armor toughness attribute.Represents the legacy attack damage attribute.Represents the legacy attack speed attribute.Represents the legacy flying speed attribute.Represents the legacy follow range attribute.Represents the legacy knock back resistance attribute.Represents the legacy luck attribute.Represents the legacy generic max health attribute.Represents the legacy movement speed attribute.Represents the legacy horse jump strength attribute.Represents the legacy zombie spawn reinforcements attribute. -
Method Summary
Modifier and TypeMethodDescription@NotNull String
getName()
Get the legacy name of the attribute.static @Nullable AttributeLegacy
valueFromName
(String name) Retrieve an AttributeLegacy from its name.static 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
Represents the legacy generic max health attribute. -
GENERIC_FOLLOW_RANGE
Represents the legacy follow range attribute. -
GENERIC_KNOCKBACK_RESISTANCE
Represents the legacy knock back resistance attribute. -
GENERIC_MOVEMENT_SPEED
Represents the legacy movement speed attribute. -
GENERIC_FLYING_SPEED
Represents the legacy flying speed attribute. -
GENERIC_ATTACK_DAMAGE
Represents the legacy attack damage attribute. -
GENERIC_ATTACK_SPEED
Represents the legacy attack speed attribute. -
GENERIC_ARMOR
Represents the legacy generic armor attribute. -
GENERIC_ARMOR_TOUGHNESS
Represents the legacy armor toughness attribute. -
GENERIC_LUCK
Represents the legacy luck attribute. -
HORSE_JUMP_STRENGTH
Represents the legacy horse jump strength attribute. -
ZOMBIE_SPAWN_REINFORCEMENTS
Represents the legacy zombie spawn reinforcements attribute.
-
-
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
Get the legacy name of the attribute.- Returns:
- The legacy name of the attribute
-
valueFromName
Retrieve an AttributeLegacy from its name.- Parameters:
name
- Name of attribute to find- Returns:
- the AttributeLegacy matching or null
-