Serializable
, Comparable<Villager.Profession>
public static enum Villager.Profession extends Enum<Villager.Profession>
Enum Constant | Description |
---|---|
BLACKSMITH |
Blacksmith profession.
|
BUTCHER |
Butcher profession.
|
FARMER |
Farmer profession.
|
HUSK |
Deprecated.
Unused
|
LIBRARIAN |
Librarian profession.
|
NITWIT |
Nitwit profession.
|
NORMAL |
Deprecated.
Unused
|
PRIEST |
Priest profession.
|
Modifier and Type | Method | Description |
---|---|---|
List<Villager.Career> |
getCareers() |
Get an immutable list of
Villager.Career belonging to this Profession. |
boolean |
isZombie() |
Deprecated.
Unused
|
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.
|
@Deprecated 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
@Deprecated 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 null@Deprecated public boolean isZombie()
@NotNull public List<Villager.Career> getCareers()
Villager.Career
belonging to this Profession.Copyright © 2020. All rights reserved.