Enum Class NBTAttribute

java.lang.Object
java.lang.Enum<NBTAttribute>
studio.magemonkey.codex.api.meta.NBTAttribute
All Implemented Interfaces:
Serializable, Comparable<NBTAttribute>, Constable

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

    • ARMOR

      public static final NBTAttribute ARMOR
    • ARMOR_TOUGHNESS

      public static final NBTAttribute ARMOR_TOUGHNESS
    • ATTACK_DAMAGE

      public static final NBTAttribute ATTACK_DAMAGE
    • ATTACK_SPEED

      public static final NBTAttribute ATTACK_SPEED
    • MOVEMENT_SPEED

      public static final NBTAttribute MOVEMENT_SPEED
    • MAX_HEALTH

      public static final NBTAttribute MAX_HEALTH
    • KNOCKBACK_RESISTANCE

      public static final NBTAttribute KNOCKBACK_RESISTANCE
  • Method Details

    • values

      public static NBTAttribute[] 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 NBTAttribute 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
    • getNmsName

      @NotNull public String getNmsName()
    • getAttribute

      @NotNull public org.bukkit.attribute.Attribute getAttribute()
    • getUUID

      @NotNull public UUID getUUID(@NotNull org.bukkit.inventory.EquipmentSlot slot)