Enum Class AttributeLegacy

java.lang.Object
java.lang.Enum<AttributeLegacy>
fr.andross.banitem.utils.attributes.AttributeLegacy
All Implemented Interfaces:
Serializable, Comparable<AttributeLegacy>, Constable

public enum AttributeLegacy extends Enum<AttributeLegacy>
An enum which represents the minecraft attributes. Only useful for Minecraft lower to 1.9
Version:
3.4
Author:
EpiCanard
  • Enum Constant Details

    • GENERIC_MAX_HEALTH

      public static final AttributeLegacy GENERIC_MAX_HEALTH
    • GENERIC_FOLLOW_RANGE

      public static final AttributeLegacy GENERIC_FOLLOW_RANGE
    • GENERIC_KNOCKBACK_RESISTANCE

      public static final AttributeLegacy GENERIC_KNOCKBACK_RESISTANCE
    • GENERIC_MOVEMENT_SPEED

      public static final AttributeLegacy GENERIC_MOVEMENT_SPEED
    • GENERIC_FLYING_SPEED

      public static final AttributeLegacy GENERIC_FLYING_SPEED
    • GENERIC_ATTACK_DAMAGE

      public static final AttributeLegacy GENERIC_ATTACK_DAMAGE
    • GENERIC_ATTACK_SPEED

      public static final AttributeLegacy GENERIC_ATTACK_SPEED
    • GENERIC_ARMOR

      public static final AttributeLegacy GENERIC_ARMOR
    • GENERIC_ARMOR_TOUGHNESS

      public static final AttributeLegacy GENERIC_ARMOR_TOUGHNESS
    • GENERIC_LUCK

      public static final AttributeLegacy GENERIC_LUCK
    • HORSE_JUMP_STRENGTH

      public static final AttributeLegacy HORSE_JUMP_STRENGTH
    • ZOMBIE_SPAWN_REINFORCEMENTS

      public static final AttributeLegacy ZOMBIE_SPAWN_REINFORCEMENTS
  • Method Details

    • values

      public static AttributeLegacy[] 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

      public static AttributeLegacy valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getName

      @NotNull public String getName()
    • valueFromName

      @Nullable public static AttributeLegacy valueFromName(String name)
      Retrieve an AttributeLegacy from its name
      Parameters:
      name - Name of attribute to find
      Returns:
      the AttributeLegacy matching or null