public enum CardRarity extends java.lang.Enum<CardRarity>
Enum Constant and Description |
---|
COMMON |
HOLORARE |
RARE |
SECRETRARE |
ULTRARARE |
UNCOMMON |
Modifier and Type | Method and Description |
---|---|
int |
getColor() |
java.lang.String |
getFileName() |
int |
getId() |
java.lang.String |
getUnlocalizedName() |
static CardRarity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CardRarity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CardRarity COMMON
public static final CardRarity UNCOMMON
public static final CardRarity RARE
public static final CardRarity HOLORARE
public static final CardRarity ULTRARARE
public static final CardRarity SECRETRARE
public static CardRarity[] values()
for (CardRarity c : CardRarity.values()) System.out.println(c);
public static CardRarity valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getId()
public java.lang.String getUnlocalizedName()
public java.lang.String getFileName()
public int getColor()