枚举的使用
org.bukkit.entity.EntityCategory
-
org.bukkit.entity中EntityCategory的使用
修饰符和类型方法说明LivingEntity.getCategory()
Get the category to which this entity belongs.static EntityCategory
返回带有指定名称的该类型的枚举常量。static EntityCategory[]
EntityCategory.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。