JavaScript is disabled on your browser.
Enum Constant Summary
Enum Constants
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
Gets the trait display name as defined in the locale's messages file.
boolean
Gets whether the trait is enabled.
boolean
boolean
double
double
int
int
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Methods inherited from interface dev.aurelium.auraskills.api.trait.Trait
name
Enum Constant Details
ATTACK_DAMAGE
public static final Traits ATTACK_DAMAGE
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
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
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
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