# 类的使用
org.bukkit.block.spawner.SpawnerEntry

使用SpawnerEntry的程序包
程序包
说明
org.bukkit.spawner
Classes related to entity spawners.

- ## org.bukkit.spawner中SpawnerEntry的使用

  返回变量类型为SpawnerEntry的类型的org.bukkit.spawner中的方法
  修饰符和类型
  方法
  说明
  `@NotNull List<SpawnerEntry>`
  BaseSpawner.`getPotentialSpawns()`
  Gets a list of potential spawns from this spawner or an empty list if no entities have been assigned to this spawner.
  参数类型为SpawnerEntry的org.bukkit.spawner中的方法
  修饰符和类型
  方法
  说明
  `void`
  BaseSpawner.`addPotentialSpawn(@NotNull SpawnerEntry spawnerEntry)`
  Adds a new `SpawnerEntry` to the list of entities this spawner can spawn.
  `void`
  BaseSpawner.`setSpawnedEntity(@NotNull SpawnerEntry spawnerEntry)`
  Sets the `SpawnerEntry` that will be spawned by this spawner.
  类型变量类型为SpawnerEntry的org.bukkit.spawner中的方法参数
  修饰符和类型
  方法
  说明
  `void`
  BaseSpawner.`setPotentialSpawns(@NotNull Collection<SpawnerEntry> entries)`
  Sets the list of `SpawnerEntry` this spawner can spawn.