Package dev.aurelium.auraskills.api.mana
Enum Class ManaAbilities
- All Implemented Interfaces:
AbstractAbility,ManaAbility,Optioned,NamespaceIdentified,Serializable,Comparable<ManaAbilities>,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 TypeMethodDescriptiondoubleGets the base cooldown of the mana ability at level 1 (just unlocked).doubleGets the base mana cost of the mana ability at level 1 (just unlocked).doubleGets the value of a mana ability at level 1 (just unlocked).doublegetCooldown(int level) Gets the cooldown at a specific mana ability level.doubleGets the change in cooldown per mana ability level.getDescription(Locale locale) Gets the mana ability description as defined in the locale's messages file.getDescription(Locale locale, boolean formatted) getDisplayName(Locale locale) Gets the mana ability display name as defined in the locale's messages file.getDisplayName(Locale locale, boolean formatted) doublegetDisplayValue(int level) Gets the value of the mana ability displayed in menus at a specific mana ability level.getId()Gets theNamespacedIdof the objectintGets the interval of skill levels between ability level ups.doublegetManaCost(int level) Gets the mana cost at a specific mana ability level.doubleGets the change in mana cost per mana ability level.intGets the max level of the ability based on the configuration.getSkill()Gets the skill the ability is leveled up by based on the configuration in the skills.yml file.intGets the skill level the ability is unlocked at based on the configuration.doublegetValue(int level) Gets the value of the mana ability at a specific mana ability level.doubleGets the amount that the mana ability value is increased by for every mana ability level.booleanGets whether the mana ability 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 ManaAbilitiesReturns the enum constant of this class with the specified name.static ManaAbilities[]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.mana.ManaAbility
name
-
Enum Constant Details
-
REPLENISH
-
TREECAPITATOR
-
SPEED_MINE
-
SHARP_HOOK
-
TERRAFORM
-
CHARGED_SHOT
-
ABSORPTION
-
LIGHTNING_BLADE
-
-
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
- Overrides:
toStringin classEnum<ManaAbilities>
-
getSkill
Description copied from interface:AbstractAbilityGets the skill the ability is leveled up by based on the configuration in the skills.yml file.- Specified by:
getSkillin interfaceAbstractAbility- Returns:
- the skill the ability belongs to
-
getDisplayName
Description copied from interface:ManaAbilityGets the mana ability display name as defined in the locale's messages file.- Specified by:
getDisplayNamein interfaceManaAbility- Parameters:
locale- the locale to get the display name in- Returns:
- the display name in the specified locale or in a fallback language
-
getDisplayName
- Specified by:
getDisplayNamein interfaceManaAbility
-
getDescription
Description copied from interface:ManaAbilityGets the mana ability description as defined in the locale's messages file.- Specified by:
getDescriptionin interfaceManaAbility- Parameters:
locale- the locale to get the description in- Returns:
- the description in the specified locale or in a fallback language
-
getDescription
- Specified by:
getDescriptionin interfaceManaAbility
-
isEnabled
public boolean isEnabled()Description copied from interface:ManaAbilityGets whether the mana ability is enabled in the configuration. Mana abilities that are not loaded in any skill will always return false. Disabled mana abilities should have no effect on gameplay.- Specified by:
isEnabledin interfaceManaAbility- Returns:
- whether the mana ability is enabled
-
getBaseValue
public double getBaseValue()Description copied from interface:ManaAbilityGets the value of a mana ability at level 1 (just unlocked).- Specified by:
getBaseValuein interfaceManaAbility- Returns:
- the base value
-
getValuePerLevel
public double getValuePerLevel()Description copied from interface:ManaAbilityGets the amount that the mana ability value is increased by for every mana ability level. This value only starts being added from ability level 2. A negative value means the mana ability value is decreased when leveled up.- Specified by:
getValuePerLevelin interfaceManaAbility- Returns:
- the change in value per mana ability level
-
getValue
public double getValue(int level) Description copied from interface:ManaAbilityGets the value of the mana ability at a specific mana ability level.- Specified by:
getValuein interfaceManaAbility- Parameters:
level- the mana ability level- Returns:
- the value at the level
-
getDisplayValue
public double getDisplayValue(int level) Description copied from interface:ManaAbilityGets the value of the mana ability displayed in menus at a specific mana ability level. This is usually the same asManaAbility.getValue(int), but can be different if the value has to be scaled to show an accurate value, such as multiplying by hp action bar scaling.- Specified by:
getDisplayValuein interfaceManaAbility- Parameters:
level- the mana ability level- Returns:
- the displayed value at the level
-
getBaseCooldown
public double getBaseCooldown()Description copied from interface:ManaAbilityGets the base cooldown of the mana ability at level 1 (just unlocked).- Specified by:
getBaseCooldownin interfaceManaAbility- Returns:
- the base cooldown
-
getCooldownPerLevel
public double getCooldownPerLevel()Description copied from interface:ManaAbilityGets the change in cooldown per mana ability level. Negative values mean the cooldown decreases as the mana ability levels up.- Specified by:
getCooldownPerLevelin interfaceManaAbility- Returns:
- the change in cooldown per mana ability level
-
getCooldown
public double getCooldown(int level) Description copied from interface:ManaAbilityGets the cooldown at a specific mana ability level.- Specified by:
getCooldownin interfaceManaAbility- Parameters:
level- the mana ability level- Returns:
- the cooldown at the level
-
getBaseManaCost
public double getBaseManaCost()Description copied from interface:ManaAbilityGets the base mana cost of the mana ability at level 1 (just unlocked).- Specified by:
getBaseManaCostin interfaceManaAbility- Returns:
- the base mana cost
-
getManaCostPerLevel
public double getManaCostPerLevel()Description copied from interface:ManaAbilityGets the change in mana cost per mana ability level. Negative values indicate a decrease in mana cost.- Specified by:
getManaCostPerLevelin interfaceManaAbility- Returns:
- the change in mana cost per mana ability level
-
getManaCost
public double getManaCost(int level) Description copied from interface:ManaAbilityGets the mana cost at a specific mana ability level.- Specified by:
getManaCostin interfaceManaAbility- Parameters:
level- the mana ability level- Returns:
- the mana cost at the level
-
getUnlock
public int getUnlock()Description copied from interface:AbstractAbilityGets the skill level the ability is unlocked at based on the configuration.- Specified by:
getUnlockin interfaceAbstractAbility- Returns:
- the skill level the ability is unlocked at
-
getLevelUp
public int getLevelUp()Description copied from interface:AbstractAbilityGets the interval of skill levels between ability level ups. A value of 5 means the ability levels up every 5 levels, starting at the value ofAbstractAbility.getUnlock().- Specified by:
getLevelUpin interfaceAbstractAbility- Returns:
- the level up interval
-
getMaxLevel
public int getMaxLevel()Description copied from interface:AbstractAbilityGets the max level of the ability based on the configuration.- Specified by:
getMaxLevelin interfaceAbstractAbility- Returns:
- the max level
-
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
-