public static enum Villager.Profession extends Enum<Villager.Profession>
Enum Constant and 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 and Description |
---|---|
boolean |
isZombie()
Returns if this profession can only be used by zombies.
|
static Villager.Profession |
valueOf(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(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 nullpublic boolean isZombie()
Copyright © 2017. All rights reserved.