程序包 org.bukkit.entity

# 接口 Villager.Profession

所有超级接口:
  `Comparable<Villager.Profession>`, `Keyed`, `OldEnum<Villager.Profession>`

封闭接口:
  Villager

public static interface Villager.Profession extends OldEnum<Villager.Profession>, Keyed
Represents the various different Villager professions there may be. Villagers have different trading options depending on their profession,

- ## 字段概要

  字段
  修饰符和类型
  字段
  说明
  `static final Villager.Profession`
  `ARMORER`
  Armorer profession.
  `static final Villager.Profession`
  `BUTCHER`
  Butcher profession.
  `static final Villager.Profession`
  `CARTOGRAPHER`
  Cartographer profession.
  `static final Villager.Profession`
  `CLERIC`
  Cleric profession.
  `static final Villager.Profession`
  `FARMER`
  Farmer profession.
  `static final Villager.Profession`
  `FISHERMAN`
  Fisherman profession.
  `static final Villager.Profession`
  `FLETCHER`
  Fletcher profession.
  `static final Villager.Profession`
  `LEATHERWORKER`
  Leatherworker profession.
  `static final Villager.Profession`
  `LIBRARIAN`
  Librarian profession.
  `static final Villager.Profession`
  `MASON`
  Mason profession.
  `static final Villager.Profession`
  `NITWIT`
  Nitwit profession.
  `static final Villager.Profession`
  `NONE`
  `static final Villager.Profession`
  `SHEPHERD`
  Sheperd profession.
  `static final Villager.Profession`
  `TOOLSMITH`
  Toolsmith profession.
  `static final Villager.Profession`
  `WEAPONSMITH`
  Weaponsmith profession.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `static @NotNull Villager.Profession`
  `valueOf(@NotNull String name)`
  已过时。
  only for backwards compatibility, use `Registry.get(NamespacedKey)` instead.
  `static @NotNull Villager.Profession[]`
  `values()`
  已过时。
  use `Iterable.iterator()`.

  ### 从接口继承的方法 org.bukkit.Keyed

  `getKey`

  ### 从接口继承的方法 org.bukkit.util.OldEnum

  `compareTo, name, ordinal`

- ## 字段详细资料

  - ### NONE

    static final Villager.Profession NONE

  - ### ARMORER

    static final Villager.Profession ARMORER
    Armorer profession. Wears a black apron. Armorers primarily trade for iron armor, chainmail armor, and sometimes diamond armor.

  - ### BUTCHER

    static final Villager.Profession BUTCHER
    Butcher profession. Wears a white apron. Butchers primarily trade for raw and cooked food.

  - ### CARTOGRAPHER

    static final Villager.Profession CARTOGRAPHER
    Cartographer profession. Wears a white robe. Cartographers primarily trade for explorer maps and some paper.

  - ### CLERIC

    static final Villager.Profession CLERIC
    Cleric profession. Wears a purple robe. Clerics primarily trade for rotten flesh, gold ingot, redstone, lapis, ender pearl, glowstone, and bottle o' enchanting.

  - ### FARMER

    static final Villager.Profession FARMER
    Farmer profession. Wears a brown robe. Farmers primarily trade for food-related items.

  - ### FISHERMAN

    static final Villager.Profession FISHERMAN
    Fisherman profession. Wears a brown robe. Fisherman primarily trade for fish, as well as possibly selling string and/or coal.

  - ### FLETCHER

    static final Villager.Profession FLETCHER
    Fletcher profession. Wears a brown robe. Fletchers primarily trade for string, bows, and arrows.

  - ### LEATHERWORKER

    static final Villager.Profession LEATHERWORKER
    Leatherworker profession. Wears a white apron. Leatherworkers primarily trade for leather, and leather armor, as well as saddles.

  - ### LIBRARIAN

    static final Villager.Profession LIBRARIAN
    Librarian profession. Wears a white robe. Librarians primarily trade for paper, books, and enchanted books.

  - ### MASON

    static final Villager.Profession MASON
    Mason profession.

  - ### NITWIT

    static final Villager.Profession NITWIT
    Nitwit profession. Wears a green apron, cannot trade. Nitwit villagers do not do anything. They do not have any trades by default.

  - ### SHEPHERD

    static final Villager.Profession SHEPHERD
    Sheperd profession. Wears a brown robe. Shepherds primarily trade for wool items, and shears.

  - ### TOOLSMITH

    static final Villager.Profession TOOLSMITH
    Toolsmith profession. Wears a black apron. Tool smiths primarily trade for iron and diamond tools.

  - ### WEAPONSMITH

    static final Villager.Profession WEAPONSMITH
    Weaponsmith profession. Wears a black apron. Weapon smiths primarily trade for iron and diamond weapons, sometimes enchanted.

- ## 方法详细资料

  - ### valueOf

    @NotNull @Deprecated(since="1.21") static @NotNull Villager.Profession valueOf(@NotNull @NotNull String name)
    已过时。
    only for backwards compatibility, use `Registry.get(NamespacedKey)` instead.
    参数:
      `name` - of the villager profession.
    返回:
      the villager profession with the given name.

  - ### values

    @NotNull @Deprecated(since="1.21") static @NotNull Villager.Profession[] values()
    已过时。
    use `Iterable.iterator()`.
    返回:
      an array of all known villager professions.