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
      Represents the legacy generic max health attribute.
    • GENERIC_FOLLOW_RANGE

      public static final AttributeLegacy GENERIC_FOLLOW_RANGE
      Represents the legacy follow range attribute.
    • GENERIC_KNOCKBACK_RESISTANCE

      public static final AttributeLegacy GENERIC_KNOCKBACK_RESISTANCE
      Represents the legacy knock back resistance attribute.
    • GENERIC_MOVEMENT_SPEED

      public static final AttributeLegacy GENERIC_MOVEMENT_SPEED
      Represents the legacy movement speed attribute.
    • GENERIC_FLYING_SPEED

      public static final AttributeLegacy GENERIC_FLYING_SPEED
      Represents the legacy flying speed attribute.
    • GENERIC_ATTACK_DAMAGE

      public static final AttributeLegacy GENERIC_ATTACK_DAMAGE
      Represents the legacy attack damage attribute.
    • GENERIC_ATTACK_SPEED

      public static final AttributeLegacy GENERIC_ATTACK_SPEED
      Represents the legacy attack speed attribute.
    • GENERIC_ARMOR

      public static final AttributeLegacy GENERIC_ARMOR
      Represents the legacy generic armor attribute.
    • GENERIC_ARMOR_TOUGHNESS

      public static final AttributeLegacy GENERIC_ARMOR_TOUGHNESS
      Represents the legacy armor toughness attribute.
    • GENERIC_LUCK

      public static final AttributeLegacy GENERIC_LUCK
      Represents the legacy luck attribute.
    • HORSE_JUMP_STRENGTH

      public static final AttributeLegacy HORSE_JUMP_STRENGTH
      Represents the legacy horse jump strength attribute.
    • ZOMBIE_SPAWN_REINFORCEMENTS

      public static final AttributeLegacy ZOMBIE_SPAWN_REINFORCEMENTS
      Represents the legacy zombie spawn reinforcements attribute.
  • 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 @NotNull String getName()
      Get the legacy name of the attribute.
      Returns:
      The legacy name of the attribute
    • valueFromName

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