public static enum VillagerDisguise.Profession extends java.lang.Enum<VillagerDisguise.Profession>
Enum Constant | Description |
---|---|
BLACKSMITH |
|
BUTCHER |
|
FARMER |
|
LIBRARIAN |
|
NITWIT |
|
PRIEST |
Modifier and Type | Method | Description |
---|---|---|
static VillagerDisguise.Profession |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static VillagerDisguise.Profession[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VillagerDisguise.Profession FARMER
public static final VillagerDisguise.Profession LIBRARIAN
public static final VillagerDisguise.Profession PRIEST
public static final VillagerDisguise.Profession BLACKSMITH
public static final VillagerDisguise.Profession BUTCHER
public static final VillagerDisguise.Profession NITWIT
public static VillagerDisguise.Profession[] values()
for (VillagerDisguise.Profession c : VillagerDisguise.Profession.values()) System.out.println(c);
public static VillagerDisguise.Profession 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 null