<h1title="Enum Class Villager.Profession"class="title">Enum Class Villager.Profession</h1>
</div>
<divclass="inheritance"title="Inheritance Tree"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">java.lang.Object</a>
<divclass="inheritance"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html"title="class or interface in java.lang"class="external-link">java.lang.Enum</a><<ahref="Villager.Profession.html"title="enum class in org.bukkit.entity">Villager.Profession</a>>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/Serializable.html"title="class or interface in java.io"class="external-link">Serializable</a></code>, <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Comparable.html"title="class or interface in java.lang"class="external-link">Comparable</a><<ahref="Villager.Profession.html"title="enum class in org.bukkit.entity">Villager.Profession</a>></code>, <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/constant/Constable.html"title="class or interface in java.lang.constant"class="external-link">Constable</a></code>, <code>net.kyori.adventure.key.Keyed</code>, <code><ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/translation/Translatable.html"title="class or interface in net.kyori.adventure.translation"class="external-link">Translatable</a></code>, <code><ahref="../Keyed.html"title="interface in org.bukkit">Keyed</a></code></dd>
</dl>
<dlclass="notes">
<dt>Enclosing interface:</dt>
<dd><ahref="Villager.html"title="interface in org.bukkit.entity">Villager</a></dd>
<spanclass="extends-implements">extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html"title="class or interface in java.lang"class="external-link">Enum</a><<ahref="Villager.Profession.html"title="enum class in org.bukkit.entity">Villager.Profession</a>>
implements <ahref="../Keyed.html"title="interface in org.bukkit">Keyed</a>, <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/translation/Translatable.html"title="class or interface in net.kyori.adventure.translation"class="external-link">Translatable</a></span></div>
<divclass="block">Represents the various different Villager professions there may be.
Villagers have different trading options depending on their profession,</div>
<h2id="nested-classes-inherited-from-class-java.lang.Enum">Nested classes/interfaces inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html"title="class or interface in java.lang"class="external-link">Enum</a></h2>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.EnumDesc.html"title="class or interface in java.lang"class="external-link">Enum.EnumDesc</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.EnumDesc.html"title="class or interface in java.lang"class="external-link">E</a> extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html"title="class or interface in java.lang"class="external-link">Enum</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.EnumDesc.html"title="class or interface in java.lang"class="external-link">E</a>>></code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../NamespacedKey.html"title="class in org.bukkit">NamespacedKey</a></code></div>
<divclass="block">Return the namespaced identifier for this object.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <ahref="Villager.Profession.html"title="enum class in org.bukkit.entity">Villager.Profession</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><ahref="#valueOf(java.lang.String)"class="member-name-link">valueOf</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> name)</code></div>
<divclass="block">Returns the enum constant of this class with the specified name.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <ahref="Villager.Profession.html"title="enum class in org.bukkit.entity">Villager.Profession</a>[]</code></div>
<divclass="block">Returns an array containing the constants of this enum class, in
the order they are declared.</div>
</div>
</div>
</div>
</div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-java.lang.Enum">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html"title="class or interface in java.lang"class="external-link">Enum</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html#clone()"title="class or interface in java.lang"class="external-link">clone</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html#compareTo(E)"title="class or interface in java.lang"class="external-link">compareTo</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html#describeConstable()"title="class or interface in java.lang"class="external-link">describeConstable</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"title="class or interface in java.lang"class="external-link">equals</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html#finalize()"title="class or interface in java.lang"class="external-link">finalize</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"title="class or interface in java.lang"class="external-link">getDeclaringClass</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html#hashCode()"title="class or interface in java.lang"class="external-link">hashCode</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html#name()"title="class or interface in java.lang"class="external-link">name</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html#ordinal()"title="class or interface in java.lang"class="external-link">ordinal</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html#toString()"title="class or interface in java.lang"class="external-link">toString</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"title="class or interface in java.lang"class="external-link">valueOf</a></code></div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()"title="class or interface in java.lang"class="external-link">getClass</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()"title="class or interface in java.lang"class="external-link">notify</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()"title="class or interface in java.lang"class="external-link">notifyAll</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)"title="class or interface in java.lang"class="external-link">wait</a></code></div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-org.bukkit.Keyed">Methods inherited from interface org.bukkit.<ahref="../Keyed.html"title="interface in org.bukkit">Keyed</a></h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Villager.Profession.html"title="enum class in org.bukkit.entity">Villager.Profession</a></span> <spanclass="element-name">NONE</span></div>
</section>
</li>
<li>
<sectionclass="detail"id="ARMORER">
<h3>ARMORER</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Villager.Profession.html"title="enum class in org.bukkit.entity">Villager.Profession</a></span> <spanclass="element-name">ARMORER</span></div>
<divclass="block">Armorer profession. Wears a black apron. Armorers primarily trade for
iron armor, chainmail armor, and sometimes diamond armor.</div>
</section>
</li>
<li>
<sectionclass="detail"id="BUTCHER">
<h3>BUTCHER</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Villager.Profession.html"title="enum class in org.bukkit.entity">Villager.Profession</a></span> <spanclass="element-name">BUTCHER</span></div>
<divclass="block">Butcher profession. Wears a white apron. Butchers primarily trade for
raw and cooked food.</div>
</section>
</li>
<li>
<sectionclass="detail"id="CARTOGRAPHER">
<h3>CARTOGRAPHER</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Villager.Profession.html"title="enum class in org.bukkit.entity">Villager.Profession</a></span> <spanclass="element-name">CARTOGRAPHER</span></div>
<divclass="block">Cartographer profession. Wears a white robe. Cartographers primarily
trade for explorer maps and some paper.</div>
</section>
</li>
<li>
<sectionclass="detail"id="CLERIC">
<h3>CLERIC</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Villager.Profession.html"title="enum class in org.bukkit.entity">Villager.Profession</a></span> <spanclass="element-name">CLERIC</span></div>
<divclass="block">Cleric profession. Wears a purple robe. Clerics primarily trade for
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Villager.Profession.html"title="enum class in org.bukkit.entity">Villager.Profession</a></span> <spanclass="element-name">FARMER</span></div>
<divclass="block">Farmer profession. Wears a brown robe. Farmers primarily trade for
food-related items.</div>
</section>
</li>
<li>
<sectionclass="detail"id="FISHERMAN">
<h3>FISHERMAN</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Villager.Profession.html"title="enum class in org.bukkit.entity">Villager.Profession</a></span> <spanclass="element-name">FISHERMAN</span></div>
<divclass="block">Fisherman profession. Wears a brown robe. Fisherman primarily trade
for fish, as well as possibly selling string and/or coal.</div>
</section>
</li>
<li>
<sectionclass="detail"id="FLETCHER">
<h3>FLETCHER</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Villager.Profession.html"title="enum class in org.bukkit.entity">Villager.Profession</a></span> <spanclass="element-name">FLETCHER</span></div>
<divclass="block">Fletcher profession. Wears a brown robe. Fletchers primarily trade
for string, bows, and arrows.</div>
</section>
</li>
<li>
<sectionclass="detail"id="LEATHERWORKER">
<h3>LEATHERWORKER</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Villager.Profession.html"title="enum class in org.bukkit.entity">Villager.Profession</a></span> <spanclass="element-name">LEATHERWORKER</span></div>
<divclass="block">Leatherworker profession. Wears a white apron. Leatherworkers
primarily trade for leather, and leather armor, as well as saddles.</div>
</section>
</li>
<li>
<sectionclass="detail"id="LIBRARIAN">
<h3>LIBRARIAN</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Villager.Profession.html"title="enum class in org.bukkit.entity">Villager.Profession</a></span> <spanclass="element-name">LIBRARIAN</span></div>
<divclass="block">Librarian profession. Wears a white robe. Librarians primarily trade
for paper, books, and enchanted books.</div>
</section>
</li>
<li>
<sectionclass="detail"id="MASON">
<h3>MASON</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Villager.Profession.html"title="enum class in org.bukkit.entity">Villager.Profession</a></span> <spanclass="element-name">MASON</span></div>
<divclass="block">Mason profession.</div>
</section>
</li>
<li>
<sectionclass="detail"id="NITWIT">
<h3>NITWIT</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Villager.Profession.html"title="enum class in org.bukkit.entity">Villager.Profession</a></span> <spanclass="element-name">NITWIT</span></div>
<divclass="block">Nitwit profession. Wears a green apron, cannot trade. Nitwit
villagers do not do anything. They do not have any trades by default.</div>
</section>
</li>
<li>
<sectionclass="detail"id="SHEPHERD">
<h3>SHEPHERD</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Villager.Profession.html"title="enum class in org.bukkit.entity">Villager.Profession</a></span> <spanclass="element-name">SHEPHERD</span></div>
<divclass="block">Sheperd profession. Wears a brown robe. Shepherds primarily trade for
wool items, and shears.</div>
</section>
</li>
<li>
<sectionclass="detail"id="TOOLSMITH">
<h3>TOOLSMITH</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Villager.Profession.html"title="enum class in org.bukkit.entity">Villager.Profession</a></span> <spanclass="element-name">TOOLSMITH</span></div>
<divclass="block">Toolsmith profession. Wears a black apron. Tool smiths primarily
trade for iron and diamond tools.</div>
</section>
</li>
<li>
<sectionclass="detail"id="WEAPONSMITH">
<h3>WEAPONSMITH</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Villager.Profession.html"title="enum class in org.bukkit.entity">Villager.Profession</a></span> <spanclass="element-name">WEAPONSMITH</span></div>
<divclass="block">Weaponsmith profession. Wears a black apron. Weapon smiths primarily
trade for iron and diamond weapons, sometimes enchanted.</div>
</section>
</li>
</ul>
</section>
</li>
<!-- ============ METHOD DETAIL ========== -->
<li>
<sectionclass="method-details"id="method-detail">
<h2>Method Details</h2>
<ulclass="member-list">
<li>
<sectionclass="detail"id="values()">
<h3>values</h3>
<divclass="member-signature"><spanclass="modifiers">public static</span> <spanclass="return-type"><ahref="Villager.Profession.html"title="enum class in org.bukkit.entity">Villager.Profession</a>[]</span> <spanclass="element-name">values</span>()</div>
<divclass="block">Returns an array containing the constants of this enum class, in
the order they are declared.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>an array containing the constants of this enum class, in the order they are declared</dd>
<divclass="member-signature"><spanclass="modifiers">public static</span> <spanclass="return-type"><ahref="Villager.Profession.html"title="enum class in org.bukkit.entity">Villager.Profession</a></span> <spanclass="element-name">valueOf</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> name)</span></div>
<divclass="block">Returns the enum constant of this class with the specified name.
The string must match <i>exactly</i> an identifier used to declare an
enum constant in this class. (Extraneous whitespace characters are
not permitted.)</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>name</code> - the name of the enum constant to be returned.</dd>
<dt>Returns:</dt>
<dd>the enum constant with the specified name</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html"title="class or interface in java.lang"class="external-link">IllegalArgumentException</a></code> - if this enum class has no constant with the specified name</dd>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/NullPointerException.html"title="class or interface in java.lang"class="external-link">NullPointerException</a></code> - if the argument is null</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getKey()">
<h3>getKey</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../NamespacedKey.html"title="class in org.bukkit">NamespacedKey</a></span> <spanclass="element-name">getKey</span>()</div>
<divclass="block"><spanclass="descfrm-type-label">Description copied from interface: <code><ahref="../Keyed.html#getKey()">Keyed</a></code></span></div>
<divclass="block">Return the namespaced identifier for this object.</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="../Keyed.html#getKey()">getKey</a></code> in interface <code><ahref="../Keyed.html"title="interface in org.bukkit">Keyed</a></code></dd>
<dt>Returns:</dt>
<dd>this object's key</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="translationKey()">
<h3>translationKey</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="element-name">translationKey</span>()</div>
<divclass="block"><spanclass="descfrm-type-label">Description copied from interface: <code><ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/translation/Translatable.html#translationKey()"title="class or interface in net.kyori.adventure.translation"class="external-link">net.kyori.adventure.translation.Translatable</a></code></span></div>
<divclass="block">Gets the translation key.</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/translation/Translatable.html#translationKey()"title="class or interface in net.kyori.adventure.translation"class="external-link">translationKey</a></code> in interface <code><ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/translation/Translatable.html"title="class or interface in net.kyori.adventure.translation"class="external-link">Translatable</a></code></dd>