public enum EnumRarity extends Enum<EnumRarity>
Modifier and Type | Field and Description |
---|---|
int |
rarityColor
A decimal representation of the hex color codes of a the color assigned to this rarity type.
|
String |
rarityName
Rarity name.
|
Modifier and Type | Method and Description |
---|---|
static EnumRarity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnumRarity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumRarity common
public static final EnumRarity uncommon
public static final EnumRarity rare
public static final EnumRarity epic
public final int rarityColor
public final String rarityName
public static EnumRarity[] values()
for (EnumRarity c : EnumRarity.values()) System.out.println(c);
public static EnumRarity valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is null