枚举的使用
org.bukkit.entity.SpawnCategory
-
org.bukkit中SpawnCategory的使用
修饰符和类型方法说明static int
Bukkit.getSpawnLimit
(@NotNull SpawnCategory spawnCategory) Gets user-specified limit for number ofSpawnCategory
mobs that can spawn in a chunk.int
Server.getSpawnLimit
(@NotNull SpawnCategory spawnCategory) Gets user-specified limit for number ofSpawnCategory
mobs that can spawn in a chunk.int
World.getSpawnLimit
(@NotNull SpawnCategory spawnCategory) Gets the limit for number ofSpawnCategory
entities that can spawn in a chunk in this worldstatic int
Bukkit.getTicksPerSpawns
(@NotNull SpawnCategory spawnCategory) Gets the default ticks perSpawnCategory
spawns value.int
Server.getTicksPerSpawns
(@NotNull SpawnCategory spawnCategory) Gets the default ticks perSpawnCategory
spawns value.long
World.getTicksPerSpawns
(@NotNull SpawnCategory spawnCategory) Gets the world's ticks perSpawnCategory
mob spawns valuevoid
World.setSpawnLimit
(@NotNull SpawnCategory spawnCategory, int limit) Sets the limit for number ofSpawnCategory
entities that can spawn in a chunk in this worldvoid
World.setTicksPerSpawns
(@NotNull SpawnCategory spawnCategory, int ticksPerCategorySpawn) Sets the world's ticks perSpawnCategory
mob spawns value -
org.bukkit.entity中SpawnCategory的使用
修饰符和类型方法说明Entity.getSpawnCategory()
Get the category of spawn to which this entity belongs.static SpawnCategory
返回带有指定名称的该类型的枚举常量。static SpawnCategory[]
SpawnCategory.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。