public static enum Villager.Profession extends Enum<Villager.Profession>
Enum Constant and Description |
---|
BLACKSMITH |
BUTCHER |
FARMER |
LIBRARIAN |
PRIEST |
Modifier and Type | Method and Description |
---|---|
int |
getId()
Deprecated.
Magic value
|
static Villager.Profession |
getProfession(int id)
Deprecated.
Magic value
|
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 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 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 int getId()
@Deprecated public static Villager.Profession getProfession(int id)
id
- ID of the profession to get.Copyright © 2015. All rights reserved.