枚举的使用
org.bukkit.entity.Villager.Profession
-
org.bukkit.entity中Villager.Profession的使用
修饰符和类型方法说明Villager.Career.getProfession()
Get theVillager.Profession
thisVillager.Career
belongs to.Villager.getProfession()
Gets the current profession of this villager.Zombie.getVillagerProfession()
已过时。ZombieVillager.getVillagerProfession()
Returns the villager profession of this zombie.static Villager.Profession
返回带有指定名称的该类型的枚举常量。static Villager.Profession[]
Villager.Profession.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。修饰符和类型方法说明static List<Villager.Career>
Villager.Career.getCareers
(Villager.Profession profession) Get an immutable list ofVillager.Career
s that can be used with a givenVillager.Profession
void
Villager.setProfession
(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.