Package org.bukkit.entity
Enum Villager.Profession
- All Implemented Interfaces:
- Serializable,- Comparable<Villager.Profession>,- java.lang.constant.Constable,- Keyed
- Enclosing interface:
- Villager
Represents the various different Villager professions there may be.
 Villagers have different trading options depending on their profession,
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionArmorer profession.Butcher profession.Cartographer profession.Cleric profession.Farmer profession.Fisherman profession.Fletcher profession.Leatherworker profession.Librarian profession.Mason profession.Nitwit profession.Sheperd profession.Toolsmith profession.Weaponsmith profession.
- 
Method SummaryModifier and TypeMethodDescriptiongetKey()Return the namespaced identifier for this object.static Villager.ProfessionReturns 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.
- 
Enum Constant Details- 
NONE
- 
ARMORERArmorer profession. Wears a black apron. Armorers primarily trade for iron armor, chainmail armor, and sometimes diamond armor.
- 
BUTCHERButcher profession. Wears a white apron. Butchers primarily trade for raw and cooked food.
- 
CARTOGRAPHERCartographer profession. Wears a white robe. Cartographers primarily trade for explorer maps and some paper.
- 
CLERICCleric profession. Wears a purple robe. Clerics primarily trade for rotten flesh, gold ingot, redstone, lapis, ender pearl, glowstone, and bottle o' enchanting.
- 
FARMERFarmer profession. Wears a brown robe. Farmers primarily trade for food-related items.
- 
FISHERMANFisherman profession. Wears a brown robe. Fisherman primarily trade for fish, as well as possibly selling string and/or coal.
- 
FLETCHERFletcher profession. Wears a brown robe. Fletchers primarily trade for string, bows, and arrows.
- 
LEATHERWORKERLeatherworker profession. Wears a white apron. Leatherworkers primarily trade for leather, and leather armor, as well as saddles.
- 
LIBRARIANLibrarian profession. Wears a white robe. Librarians primarily trade for paper, books, and enchanted books.
- 
MASONMason profession.
- 
NITWITNitwit profession. Wears a green apron, cannot trade. Nitwit villagers do not do anything. They do not have any trades by default.
- 
SHEPHERDSheperd profession. Wears a brown robe. Shepherds primarily trade for wool items, and shears.
- 
TOOLSMITHToolsmith profession. Wears a black apron. Tool smiths primarily trade for iron and diamond tools.
- 
WEAPONSMITHWeaponsmith profession. Wears a black apron. Weapon smiths primarily trade for iron and diamond weapons, sometimes enchanted.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
getKeyDescription copied from interface:KeyedReturn the namespaced identifier for this object.
 
-