Enum Class Traits

java.lang.Object
java.lang.Enum<Traits>
dev.aurelium.auraskills.api.trait.Traits
All Implemented Interfaces:
Optioned, NamespaceIdentified, Trait, Serializable, Comparable<Traits>, Constable

public enum Traits extends Enum<Traits> implements Trait
  • Enum Constant Details

    • ATTACK_DAMAGE

      public static final Traits ATTACK_DAMAGE
    • HP

      public static final Traits HP
    • SATURATION_REGEN

      public static final Traits SATURATION_REGEN
    • HUNGER_REGEN

      public static final Traits HUNGER_REGEN
    • MANA_REGEN

      public static final Traits MANA_REGEN
    • LUCK

      public static final Traits LUCK
    • FARMING_LUCK

      public static final Traits FARMING_LUCK
    • FORAGING_LUCK

      public static final Traits FORAGING_LUCK
    • MINING_LUCK

      public static final Traits MINING_LUCK
    • FISHING_LUCK

      public static final Traits FISHING_LUCK
    • EXCAVATION_LUCK

      public static final Traits EXCAVATION_LUCK
    • DOUBLE_DROP

      public static final Traits DOUBLE_DROP
    • EXPERIENCE_BONUS

      public static final Traits EXPERIENCE_BONUS
    • ANVIL_DISCOUNT

      public static final Traits ANVIL_DISCOUNT
    • MAX_MANA

      public static final Traits MAX_MANA
    • DAMAGE_REDUCTION

      public static final Traits DAMAGE_REDUCTION
    • CRIT_CHANCE

      public static final Traits CRIT_CHANCE
    • CRIT_DAMAGE

      public static final Traits CRIT_DAMAGE
    • MOVEMENT_SPEED

      public static final Traits MOVEMENT_SPEED
  • Method Details

    • values

      public static Traits[] 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 Traits 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
    • getId

      public NamespacedId getId()
      Description copied from interface: NamespaceIdentified
      Gets the NamespacedId of the object
      Specified by:
      getId in interface NamespaceIdentified
      Returns:
      the NamespacedId
    • isEnabled

      public boolean isEnabled()
      Description copied from interface: Trait
      Gets whether the trait is enabled. Disabled traits will have no effect and will be hidden from menus.
      Specified by:
      isEnabled in interface Trait
      Returns:
      whether the trait is enabled
    • getDisplayName

      public String getDisplayName(Locale locale)
      Description copied from interface: Trait
      Gets the trait display name as defined in the locale's messages file.
      Specified by:
      getDisplayName in interface Trait
      Parameters:
      locale - the locale to get the display name
      Returns:
      the display name in the specified locale or a fallback language
    • optionBoolean

      public boolean optionBoolean(String key)
      Specified by:
      optionBoolean in interface Optioned
    • optionBoolean

      public boolean optionBoolean(String key, boolean def)
      Specified by:
      optionBoolean in interface Optioned
    • optionInt

      public int optionInt(String key)
      Specified by:
      optionInt in interface Optioned
    • optionInt

      public int optionInt(String key, int def)
      Specified by:
      optionInt in interface Optioned
    • optionDouble

      public double optionDouble(String key)
      Specified by:
      optionDouble in interface Optioned
    • optionDouble

      public double optionDouble(String key, double def)
      Specified by:
      optionDouble in interface Optioned
    • optionString

      public String optionString(String key)
      Specified by:
      optionString in interface Optioned
    • optionString

      public String optionString(String key, String def)
      Specified by:
      optionString in interface Optioned
    • optionStringList

      public List<String> optionStringList(String key)
      Specified by:
      optionStringList in interface Optioned
    • optionMap

      public Map<String,Object> optionMap(String key)
      Specified by:
      optionMap in interface Optioned
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Traits>