public static enum Villager.Profession extends java.lang.Enum<Villager.Profession>
Enum Constant | Description |
---|---|
BLACKSMITH |
Blacksmith profession.
|
BUTCHER |
Butcher profession.
|
FARMER |
Farmer profession.
|
HUSK |
Husk.
|
LIBRARIAN |
Librarian profession.
|
NITWIT |
Nitwit profession.
|
NORMAL |
Normal.
|
PRIEST |
Priest profession.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
isZombie() |
Returns if this profession can only be used by zombies.
|
static Villager.Profession |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Villager.Profession[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Villager.Profession NORMAL
public static final Villager.Profession FARMER
public static final Villager.Profession LIBRARIAN
public static final Villager.Profession PRIEST
public static final Villager.Profession BLACKSMITH
public static final Villager.Profession BUTCHER
public static final Villager.Profession NITWIT
public static final Villager.Profession HUSK
public static Villager.Profession[] values()
for (Villager.Profession c : Villager.Profession.values()) System.out.println(c);
public static Villager.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 nullpublic boolean isZombie()