# 接口的使用
org.bukkit.entity.Villager.Profession

使用Villager.Profession的程序包
程序包
说明
org.bukkit
Bukkit API的顶级程序包, 包含通用的API类和接口.
org.bukkit.entity
为在`世界`内存在的非三维像素单位(实体)提供的接口，包含玩家、怪物、抛射物等.
org.bukkit.event.entity
与`实体`相关的`事件`，不包括 一些直接引用的更具体的实体类型.

- ## org.bukkit中Villager.Profession的使用

  类型参数类型为Villager.Profession的org.bukkit中的字段
  修饰符和类型
  字段
  说明
  `static final Registry<Villager.Profession>`
  Registry.`VILLAGER_PROFESSION`
  Villager profession.

- ## org.bukkit.entity中Villager.Profession的使用

  声明为Villager.Profession的org.bukkit.entity中的字段
  修饰符和类型
  字段
  说明
  `static final Villager.Profession`
  Villager.Profession.`ARMORER`
  Armorer profession.
  `static final Villager.Profession`
  Villager.Profession.`BUTCHER`
  Butcher profession.
  `static final Villager.Profession`
  Villager.Profession.`CARTOGRAPHER`
  Cartographer profession.
  `static final Villager.Profession`
  Villager.Profession.`CLERIC`
  Cleric profession.
  `static final Villager.Profession`
  Villager.Profession.`FARMER`
  Farmer profession.
  `static final Villager.Profession`
  Villager.Profession.`FISHERMAN`
  Fisherman profession.
  `static final Villager.Profession`
  Villager.Profession.`FLETCHER`
  Fletcher profession.
  `static final Villager.Profession`
  Villager.Profession.`LEATHERWORKER`
  Leatherworker profession.
  `static final Villager.Profession`
  Villager.Profession.`LIBRARIAN`
  Librarian profession.
  `static final Villager.Profession`
  Villager.Profession.`MASON`
  Mason profession.
  `static final Villager.Profession`
  Villager.Profession.`NITWIT`
  Nitwit profession.
  `static final Villager.Profession`
  Villager.Profession.`NONE`
  `static final Villager.Profession`
  Villager.Profession.`SHEPHERD`
  Sheperd profession.
  `static final Villager.Profession`
  Villager.Profession.`TOOLSMITH`
  Toolsmith profession.
  `static final Villager.Profession`
  Villager.Profession.`WEAPONSMITH`
  Weaponsmith profession.
  返回Villager.Profession的org.bukkit.entity中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Villager.Profession`
  Villager.`getProfession()`
  Gets the current profession of this villager.
  `Villager.Profession`
  Zombie.`getVillagerProfession()`
  已过时。
  `Villager.Profession`
  ZombieVillager.`getVillagerProfession()`
  Returns the villager profession of this zombie.
  `static @NotNull Villager.Profession`
  Villager.Profession.`valueOf(@NotNull String name)`
  已过时。
  only for backwards compatibility, use `Registry.get(NamespacedKey)` instead.
  `static @NotNull Villager.Profession[]`
  Villager.Profession.`values()`
  已过时。
  use `Iterable.iterator()`.
  参数类型为Villager.Profession的org.bukkit.entity中的方法
  修饰符和类型
  方法
  说明
  `void`
  Villager.`setProfession(@NotNull Villager.Profession profession)`
  Sets the new profession of this villager.
  `void`
  Zombie.`setVillagerProfession(Villager.Profession profession)`
  已过时。
  `void`
  ZombieVillager.`setVillagerProfession(Villager.Profession profession)`
  Sets the villager profession of this zombie.

- ## org.bukkit.event.entity中Villager.Profession的使用

  返回Villager.Profession的org.bukkit.event.entity中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Villager.Profession`
  VillagerCareerChangeEvent.`getProfession()`
  Gets the future profession of the villager.
  参数类型为Villager.Profession的org.bukkit.event.entity中的方法
  修饰符和类型
  方法
  说明
  `void`
  VillagerCareerChangeEvent.`setProfession(@NotNull Villager.Profession profession)`
  Sets the profession the villager will become from this event.
  参数类型为Villager.Profession的org.bukkit.event.entity中的构造器
  限定符
  构造器
  说明
  ``
  `VillagerCareerChangeEvent(@NotNull Villager what, @NotNull Villager.Profession profession, @NotNull VillagerCareerChangeEvent.ChangeReason reason)`