Enum AttributeKey

java.lang.Object
java.lang.Enum<AttributeKey>
com.mrivanplays.ivancord.api.attributes.AttributeKey
All Implemented Interfaces:
Serializable, Comparable<AttributeKey>

public enum AttributeKey extends Enum<AttributeKey>
  • Enum Constant Details

    • GENERIC_MAX_HEALTH

      public static final AttributeKey GENERIC_MAX_HEALTH
    • GENERIC_FOLLOW_RANGE

      public static final AttributeKey GENERIC_FOLLOW_RANGE
    • GENERIC_KNOCKBACK_RESISTANCE

      public static final AttributeKey GENERIC_KNOCKBACK_RESISTANCE
    • GENERIC_MOVEMENT_SPEED

      public static final AttributeKey GENERIC_MOVEMENT_SPEED
    • GENERIC_ATTACK_DAMAGE

      public static final AttributeKey GENERIC_ATTACK_DAMAGE
    • GENERIC_FLYING_SPEED

      public static final AttributeKey GENERIC_FLYING_SPEED
    • GENERIC_ARMOR

      public static final AttributeKey GENERIC_ARMOR
    • GENERIC_ARMOR_TOUGHNESS

      public static final AttributeKey GENERIC_ARMOR_TOUGHNESS
    • GENERIC_ATTACK_KNOCKBACK

      public static final AttributeKey GENERIC_ATTACK_KNOCKBACK
    • GENERIC_LUCK

      public static final AttributeKey GENERIC_LUCK
    • HORSE_JUMP_STRENGTH

      public static final AttributeKey HORSE_JUMP_STRENGTH
    • ZOMBIE_SPAWN_REINFORCEMENTS

      public static final AttributeKey ZOMBIE_SPAWN_REINFORCEMENTS
  • Method Details

    • values

      public static AttributeKey[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AttributeKey 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 name
      NullPointerException - if the argument is null
    • fromKey

      public static AttributeKey fromKey(String key)
    • getKey

      public String getKey(int protocolVersion)
    • getDefaultValue

      public double getDefaultValue()
    • getMinValue

      public double getMinValue()
    • getMaxValue

      public double getMaxValue()