类的使用
org.bukkit.block.spawner.SpawnerEntry
使用SpawnerEntry的程序包
-
org.bukkit.spawner中SpawnerEntry的使用
返回变量类型为SpawnerEntry的类型的org.bukkit.spawner中的方法修饰符和类型方法说明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 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.类型变量类型为SpawnerEntry的org.bukkit.spawner中的方法参数修饰符和类型方法说明void
BaseSpawner.setPotentialSpawns
(@NotNull Collection<SpawnerEntry> entries) Sets the list ofSpawnerEntry
this spawner can spawn.