public enum VillagerCareer extends Enum<VillagerCareer>
Enum Constant and Description |
---|
ARMORER
Armorer
|
BUTCHER
Butcher
|
CLERIC
Cleric
|
FARMER
Farmer
|
FISHERMAN
Fisherman
|
FLETCHER
Fletcher
|
LEATHERWORKER
Leatherworker
|
LIBRARIAN
Librarian
|
SHEPHERD
Shepherd
|
TOOL_SMITH
Tool smith
|
WEAPON_SMITH
Weapon smith
|
Modifier and Type | Method and Description |
---|---|
int |
id() |
VillagerProfession |
parent() |
static VillagerCareer |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VillagerCareer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VillagerCareer FLETCHER
public static final VillagerCareer FARMER
public static final VillagerCareer FISHERMAN
public static final VillagerCareer SHEPHERD
public static final VillagerCareer LIBRARIAN
public static final VillagerCareer CLERIC
public static final VillagerCareer TOOL_SMITH
public static final VillagerCareer ARMORER
public static final VillagerCareer WEAPON_SMITH
public static final VillagerCareer BUTCHER
public static final VillagerCareer LEATHERWORKER
public static VillagerCareer[] values()
for (VillagerCareer c : VillagerCareer.values()) System.out.println(c);
public static VillagerCareer 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 VillagerProfession parent()
public int id()
Copyright © 2016. All rights reserved.