Serializable
, Comparable<Villager.Profession>
, Keyed
public static enum Villager.Profession extends Enum<Villager.Profession> implements Keyed
Enum Constant | Description |
---|---|
ARMORER |
Armorer profession.
|
BUTCHER |
Butcher profession.
|
CARTOGRAPHER |
Cartographer profession.
|
CLERIC |
Cleric profession.
|
FARMER |
Farmer profession.
|
FISHERMAN |
Fisherman profession.
|
FLETCHER |
Fletcher profession.
|
LEATHERWORKER |
Leatherworker profession.
|
LIBRARIAN |
Librarian profession.
|
MASON |
Mason profession.
|
NITWIT |
Nitwit profession.
|
NONE |
|
SHEPHERD |
Sheperd profession.
|
TOOLSMITH |
Toolsmith profession.
|
WEAPONSMITH |
Weaponsmith profession.
|
Modifier and Type | Method | Description |
---|---|---|
@NotNull NamespacedKey |
getKey() |
Return the namespaced identifier for this object.
|
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 NONE
public static final Villager.Profession ARMORER
public static final Villager.Profession BUTCHER
public static final Villager.Profession CARTOGRAPHER
public static final Villager.Profession CLERIC
public static final Villager.Profession FARMER
public static final Villager.Profession FISHERMAN
public static final Villager.Profession FLETCHER
public static final Villager.Profession LEATHERWORKER
public static final Villager.Profession LIBRARIAN
public static final Villager.Profession MASON
public static final Villager.Profession NITWIT
public static final Villager.Profession SHEPHERD
public static final Villager.Profession TOOLSMITH
public static final Villager.Profession WEAPONSMITH
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@NotNull public @NotNull NamespacedKey getKey()
Keyed
Copyright © 2020. All rights reserved.