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)
 
 LIBRARIAN =(1)
 
 PRIEST =(2)
 
 BLACKSMITH =(3)
 
 BUTCHER =(4)
 

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.

Returns
Profession ID.
Deprecated:
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)
static

Gets a profession by its ID.

Parameters
idID of the profession to get.
Returns
Resulting profession, or null if not found.
Deprecated:
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: