| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Villager.Profession>
org.bukkit.entity.Villager.Profession
public static enum Villager.Profession
Represents the various different Villager professions there may be.
| Enum Constant Summary | |
|---|---|
BLACKSMITH
 | 
|
BUTCHER
 | 
|
FARMER
 | 
|
LIBRARIAN
 | 
|
PRIEST
 | 
|
| Method Summary | |
|---|---|
 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.  | 
| Methods inherited from class java.lang.Enum | 
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf | 
| Methods inherited from class java.lang.Object | 
|---|
getClass, notify, notifyAll, wait, wait, wait | 
| Enum Constant Detail | 
|---|
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
| Method Detail | 
|---|
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 name
NullPointerException - if the argument is null@Deprecated public int getId()
@Deprecated public static Villager.Profession getProfession(int id)
id - ID of the profession to get.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||