public enum Rarity extends Enum<Rarity>
Modifier and Type | Field and Description |
---|---|
Formatting |
formatting |
Modifier and Type | Method and Description |
---|---|
static Rarity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Rarity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Rarity COMMON
public static final Rarity UNCOMMON
public static final Rarity RARE
public static final Rarity EPIC
public final Formatting formatting
public static Rarity[] values()
for (Rarity c : Rarity.values()) System.out.println(c);
public static Rarity 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