枚举 Villager.Profession

java.lang.Object
java.lang.Enum<Villager.Profession>
org.bukkit.entity.Villager.Profession
所有已实现的接口:
Serializable, Comparable<Villager.Profession>, java.lang.constant.Constable, Keyed
封闭接口:
Villager

public static enum Villager.Profession extends Enum<Villager.Profession> implements Keyed
Represents the various different Villager professions there may be. Villagers have different trading options depending on their profession,
  • 枚举常量详细资料

    • NONE

      public static final Villager.Profession NONE
    • ARMORER

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

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

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

      public 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

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

      public 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

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

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

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

      public static final Villager.Profession MASON
      Mason profession.
    • NITWIT

      public 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

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

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

      public static final Villager.Profession WEAPONSMITH
      Weaponsmith profession. Wears a black apron. Weapon smiths primarily trade for iron and diamond weapons, sometimes enchanted.
  • 方法详细资料

    • values

      public static Villager.Profession[] values()
      按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
      返回:
      按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
    • valueOf

      public static Villager.Profession valueOf(String name)
      返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
      NullPointerException - 如果参数为空值
    • getKey

      @NotNull public @NotNull NamespacedKey getKey()
      从接口复制的说明: Keyed
      返回用于此对象的命名空间标识符.

      原文:Return the namespaced identifier for this object.

      指定者:
      getKey 在接口中 Keyed
      返回:
      标识此对象的 key