Package org.bukkit.entity
Interface Villager.Profession
- All Superinterfaces:
- Comparable<Villager.Profession>,- Keyed,- Keyed,- OldEnum<Villager.Profession>,- Translatable
- Enclosing interface:
- Villager
public static interface Villager.Profession
extends OldEnum<Villager.Profession>, Keyed, Translatable
Represents the various different Villager professions there may be.
 Villagers have different trading options depending on their profession,
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Villager.ProfessionArmorer profession.static final Villager.ProfessionButcher profession.static final Villager.ProfessionCartographer profession.static final Villager.ProfessionCleric profession.static final Villager.ProfessionFarmer profession.static final Villager.ProfessionFisherman profession.static final Villager.ProfessionFletcher profession.static final Villager.ProfessionLeatherworker profession.static final Villager.ProfessionLibrarian profession.static final Villager.ProfessionMason profession.static final Villager.ProfessionNitwit profession.static final Villager.Professionstatic final Villager.ProfessionShepherd profession.static final Villager.ProfessionToolsmith profession.static final Villager.ProfessionWeaponsmith profession.
- 
Method SummaryModifier and TypeMethodDescriptionGets the translation key.static @NotNull Villager.ProfessionDeprecated, for removal: This API element is subject to removal in a future version.static @NotNull Villager.Profession[]values()Deprecated, for removal: This API element is subject to removal in a future version.useIterable.iterator().
- 
Field Details- 
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.
- 
NONE
- 
SHEPHERDShepherd 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- 
valueOf@NotNull @Deprecated(since="1.21", forRemoval=true) @ScheduledForRemoval(inVersion="1.22") static @NotNull Villager.Profession valueOf(@NotNull @NotNull String name) Deprecated, for removal: This API element is subject to removal in a future version.only for backwards compatibility, useRegistry.get(NamespacedKey)instead.- Parameters:
- name- of the villager profession.
- Returns:
- the villager profession with the given name.
 
- 
values@NotNull @Deprecated(since="1.21", forRemoval=true) @ScheduledForRemoval(inVersion="1.22") static @NotNull Villager.Profession[] values()Deprecated, for removal: This API element is subject to removal in a future version.useIterable.iterator().- Returns:
- an array of all known villager professions.
 
- 
translationKeyDescription copied from interface:net.kyori.adventure.translation.TranslatableGets the translation key.- Specified by:
- translationKeyin interface- Translatable
- Returns:
- the translation key
 
 
- 
Registry.get(NamespacedKey)instead.