public static enum Spell.Book extends java.lang.Enum<Spell.Book>
Modifier and Type | Method and Description |
---|---|
int |
getId() |
static Spell.Book |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Spell.Book[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Spell.Book MODERN
public static final Spell.Book ANCIENT
public static final Spell.Book LUNAR
public static final Spell.Book ARCEUUS
public static Spell.Book[] values()
for (Spell.Book c : Spell.Book.values()) System.out.println(c);
public static Spell.Book 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()