接口的使用
org.bukkit.entity.Villager.Profession
-
org.bukkit中Villager.Profession的使用
修饰符和类型字段说明static final Registry<Villager.Profession>
Registry.VILLAGER_PROFESSION
Villager profession. -
org.bukkit.entity中Villager.Profession的使用
修饰符和类型字段说明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.getProfession()
Gets the current profession of this villager.Zombie.getVillagerProfession()
已过时。ZombieVillager.getVillagerProfession()
Returns the villager profession of this zombie.static @NotNull Villager.Profession
已过时。static @NotNull Villager.Profession[]
Villager.Profession.values()
已过时。useIterable.iterator()
.修饰符和类型方法说明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的使用
修饰符和类型方法说明void
VillagerCareerChangeEvent.setProfession
(@NotNull Villager.Profession profession) Sets the profession the villager will become from this event.限定符构造器说明VillagerCareerChangeEvent
(@NotNull Villager what, @NotNull Villager.Profession profession, @NotNull VillagerCareerChangeEvent.ChangeReason reason)
Registry.get(NamespacedKey)
instead.