Enum Rarity
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum Rarity extends Enum<Rarity>
Represents a Rarity, applicable to a BattleCard
-
-
Field Summary
Fields Modifier and Type Field Description private final DoublemaxCardExperienceprivate final ChatColorcolorprivate final DoubleexperienceModifierprivate final IntegermaxCardLevelprivate final Stringnameprivate final Integerordinal
-
Enum Constant Summary
Enum Constants Enum Constant Description BASICRepresents the Basic rarity
COMMONRepresents the Common rarity
UNCOMMONRepresents the Uncommon rarity
RARERepresents the Rare rarity
EPICRepresents the Epic rarity
LEGENDRepresents the Legend rarity
MYTHICALRepresents the Mythical rarity
ULTIMATERepresents the Ultimate rarity
-
Method Summary
Modifier and Type Method Description StringtoString()final RarityvalueOf(String value)Returns the enum constant of this type with the specified name. final Array<Rarity>values()Returns an array containing the constants of this enum type, in the order they're declared. final DoublegetMaxCardExperience()Fetches the maximum experience a BattleCard can have for this rarity. final ChatColorgetColor()Fetches the color of this rarity. final DoublegetExperienceModifier()Fetches the experience modifier for this rarity, which is used to calculate the amount of experience a player needs to increase the Card's Level. final IntegergetMaxCardLevel()Fetches the maximum level a BattleCard can be for this rarity. -
-
Method Detail
-
valueOf
final Rarity valueOf(String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
-
values
final Array<Rarity> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getMaxCardExperience
final Double getMaxCardExperience()
Fetches the maximum experience a BattleCard can have for this rarity.
-
getColor
final ChatColor getColor()
Fetches the color of this rarity.
-
getExperienceModifier
final Double getExperienceModifier()
Fetches the experience modifier for this rarity, which is used to calculate the amount of experience a player needs to increase the Card's Level.
-
getMaxCardLevel
final Integer getMaxCardLevel()
Fetches the maximum level a BattleCard can be for this rarity.
-
-
-
-