枚举的使用
org.bukkit.entity.Villager.Type
-
org.bukkit中Villager.Type的使用
-
org.bukkit.entity中Villager.Type的使用
修饰符和类型方法说明Villager.getVillagerType()
Gets the current type of this villager.ZombieVillager.getVillagerType()
Gets the current type of this villager.static Villager.Type
返回带有指定名称的该类型的枚举常量。static Villager.Type[]
Villager.Type.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。修饰符和类型方法说明void
Villager.setVillagerType
(@NotNull Villager.Type type) Sets the new type of this villager.void
ZombieVillager.setVillagerType
(Villager.Type type) Sets the new type of this villager.