Package dev.aurelium.auraskills.api.stat
Enum Class Stats
- All Implemented Interfaces:
Optioned,NamespaceIdentified,ReloadableIdentifier,Stat,Serializable,Comparable<Stats>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionGets the stat color as defined in the messages file.getColoredName(Locale locale) Gets the stat's display name applied with its colorgetDescription(Locale locale) Gets the stat description as defined in the locale's messages file.getDescription(Locale locale, boolean formatted) Gets the stat description as defined in the locale's messages file.getDisplayName(Locale locale) Gets the stat display name as defined in the locale's messages file.getDisplayName(Locale locale, boolean formatted) Gets the stat display name as defined in the locale's messages file.getId()Gets theNamespacedIdof the objectGets the symbol as defined in the messages file.doublegetTraitModifier(Trait trait) Gets the modifier value for aTraitassociated with the stat defined in stats.yml.Gets the list ofTraitinstances leveled by the stat.booleanGets whether the stat is enabled in the configuration.booleanoptionBoolean(String key) booleanoptionBoolean(String key, boolean def) doubleoptionDouble(String key) doubleoptionDouble(String key, double def) intintoptionString(String key) optionString(String key, String def) optionStringList(String key) toString()static StatsReturns the enum constant of this class with the specified name.static Stats[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfMethods inherited from interface dev.aurelium.auraskills.api.stat.Stat
hasDirectTrait, name
-
Enum Constant Details
-
STRENGTH
-
HEALTH
-
REGENERATION
-
LUCK
-
WISDOM
-
TOUGHNESS
-
CRIT_CHANCE
-
CRIT_DAMAGE
-
SPEED
-
-
Method Details
-
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 nameNullPointerException- if the argument is null
-
getId
Description copied from interface:NamespaceIdentifiedGets theNamespacedIdof the object- Specified by:
getIdin interfaceNamespaceIdentified- Returns:
- the
NamespacedId
-
toString
-
isEnabled
public boolean isEnabled()Description copied from interface:StatGets whether the stat is enabled in the configuration. Disabled stats have no effect and are hidden from menus and messages. -
getTraits
Description copied from interface:StatGets the list ofTraitinstances leveled by the stat. Traits are the gameplay aspects buffed by a stat. The trait value is determined by the stat level multiplied by the modifier in stats.yml. -
getTraitModifier
Description copied from interface:StatGets the modifier value for aTraitassociated with the stat defined in stats.yml. The modifier value is multiplied by the stat level to determine the trait value, which is the value directly used by the trait implementation.- Specified by:
getTraitModifierin interfaceStat- Parameters:
trait- the trait modifier value- Returns:
- the trait modifier
-
getDisplayName
Description copied from interface:StatGets the stat display name as defined in the locale's messages file.- Specified by:
getDisplayNamein interfaceStat- Parameters:
locale- the locale to get the display name in- Returns:
- the display name in the specified locale or in a fallback language
-
getDisplayName
Description copied from interface:StatGets the stat display name as defined in the locale's messages file.- Specified by:
getDisplayNamein interfaceStat- Parameters:
locale- the locale to get the display name informatted- whether to apply formatting to the display name- Returns:
- the display name in the specified locale or in a fallback language
-
getDescription
Description copied from interface:StatGets the stat description as defined in the locale's messages file.- Specified by:
getDescriptionin interfaceStat- Parameters:
locale- the locale to get the description in- Returns:
- the description in the specified locale or in a fallback language
-
getDescription
Description copied from interface:StatGets the stat description as defined in the locale's messages file.- Specified by:
getDescriptionin interfaceStat- Parameters:
locale- the locale to get the description informatted- whether to apply formatting to the description- Returns:
- the description in the specified locale or in a fallback language
-
getColor
Description copied from interface:StatGets the stat color as defined in the messages file. -
getColoredName
Description copied from interface:StatGets the stat's display name applied with its color- Specified by:
getColoredNamein interfaceStat- Parameters:
locale- the locale to get the name and color in- Returns:
- the colored name
-
getSymbol
Description copied from interface:StatGets the symbol as defined in the messages file. -
optionBoolean
- Specified by:
optionBooleanin interfaceOptioned
-
optionBoolean
- Specified by:
optionBooleanin interfaceOptioned
-
optionInt
-
optionInt
-
optionDouble
- Specified by:
optionDoublein interfaceOptioned
-
optionDouble
- Specified by:
optionDoublein interfaceOptioned
-
optionString
- Specified by:
optionStringin interfaceOptioned
-
optionString
- Specified by:
optionStringin interfaceOptioned
-
optionStringList
- Specified by:
optionStringListin interfaceOptioned
-
optionMap
-