类的使用
org.bukkit.block.spawner.SpawnerEntry
-
org.bukkit.spawner中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.修饰符和类型方法说明void
BaseSpawner.addPotentialSpawn
(@NotNull SpawnerEntry spawnerEntry) Adds a newSpawnerEntry
to the list of entities this spawner can spawn.void
BaseSpawner.setSpawnedEntity
(@NotNull SpawnerEntry spawnerEntry) Sets theSpawnerEntry
that will be spawned by this spawner.修饰符和类型方法说明void
BaseSpawner.setPotentialSpawns
(@NotNull Collection<SpawnerEntry> entries) Sets the list ofSpawnerEntry
this spawner can spawn.