Interface Spawner

All Known Implementing Classes:
CatSpawner, PhantomSpawner, PillagerSpawner, WanderingTraderManager, ZombieSiegeManager

public interface Spawner
Handles spawning entities in a world.

A spawner is typically used to spawn entities within a special context, such as cats in a village or wandering traders.

  • Method Summary

    Modifier and Type Method Description
    int spawn​(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals)
    Spawns entities into a world.
  • Method Details

    • spawn

      int spawn​(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals)
      Spawns entities into a world.
      Parameters:
      spawnMonsters - whether monsters should be spawned
      spawnAnimals - whether animals should be spawned
      Returns:
      the number of entities spawned