# 枚举的使用
org.bukkit.entity.SpawnCategory

使用SpawnCategory的程序包
程序包
说明
org.bukkit
Bukkit API的顶级程序包, 包含通用的API类和接口.
org.bukkit.entity
为在`世界`内存在的非三维像素单位(实体)提供的接口，包含玩家、怪物、抛射物等.

- ## org.bukkit中SpawnCategory的使用

  参数类型为SpawnCategory的org.bukkit中的方法
  修饰符和类型
  方法
  说明
  `static int`
  Bukkit.`getSpawnLimit(@NotNull SpawnCategory spawnCategory)`
  Gets user-specified limit for number of `SpawnCategory` mobs that can spawn in a chunk.
  `int`
  Server.`getSpawnLimit(@NotNull SpawnCategory spawnCategory)`
  Gets user-specified limit for number of `SpawnCategory` mobs that can spawn in a chunk.
  `int`
  World.`getSpawnLimit(@NotNull SpawnCategory spawnCategory)`
  Gets the limit for number of `SpawnCategory` entities that can spawn in a chunk in this world
  `static int`
  Bukkit.`getTicksPerSpawns(@NotNull SpawnCategory spawnCategory)`
  Gets the default ticks per `SpawnCategory` spawns value.
  `int`
  Server.`getTicksPerSpawns(@NotNull SpawnCategory spawnCategory)`
  Gets the default ticks per `SpawnCategory` spawns value.
  `long`
  World.`getTicksPerSpawns(@NotNull SpawnCategory spawnCategory)`
  Gets the world's ticks per `SpawnCategory` mob spawns value
  `void`
  World.`setSpawnLimit(@NotNull SpawnCategory spawnCategory, int limit)`
  Sets the limit for number of `SpawnCategory` entities that can spawn in a chunk in this world
  `void`
  World.`setTicksPerSpawns(@NotNull SpawnCategory spawnCategory, int ticksPerCategorySpawn)`
  Sets the world's ticks per `SpawnCategory` mob spawns value

- ## org.bukkit.entity中SpawnCategory的使用

  返回SpawnCategory的org.bukkit.entity中的方法
  修饰符和类型
  方法
  说明
  `@NotNull SpawnCategory`
  Entity.`getSpawnCategory()`
  Get the category of spawn to which this entity belongs.
  `static SpawnCategory`
  SpawnCategory.`valueOf(String name)`
  返回带有指定名称的该类型的枚举常量。
  `static SpawnCategory[]`
  SpawnCategory.`values()`
  按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。