Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.entity.Villager.Profession Enum Reference

Public Member Functions

int getId ()

Static Public Member Functions

 [static initializer]
static Profession getProfession (int id)

Public Attributes

 FARMER =(0)
 PRIEST =(2)

Detailed Description

Represents the various different Villager professions there may be.

Definition at line 26 of file Villager.java.

Member Function Documentation

int org.bukkit.entity.Villager.Profession.getId ( )

Gets the ID of this profession.

Profession ID.
Magic value

Definition at line 53 of file Villager.java.

53  {
54  return id;
55  }
static Profession org.bukkit.entity.Villager.Profession.getProfession ( int  id)

Gets a profession by its ID.

idID of the profession to get.
Resulting profession, or null if not found.
Magic value

Definition at line 65 of file Villager.java.

65  {
66  return (id >= professions.length) ? null : professions[id];
67  }

The documentation for this enum was generated from the following file: