public interface Spawner
A spawner is typically used to spawn entities within a special context, such as cats in a village or wandering traders.
Modifier and Type | Method and Description |
---|---|
int |
spawn(ServerWorld world,
boolean spawnMonsters,
boolean spawnAnimals)
Spawns entities into a world.
|
int spawn(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals)
spawnMonsters
- whether monsters should be spawnedspawnAnimals
- whether animals should be spawned