Class PhantomSpawner

java.lang.Object
net.minecraft.world.gen.PhantomSpawner
All Implemented Interfaces:
Spawner

public class PhantomSpawner
extends Object
implements Spawner
  • Field Details

    • ticksUntilNextSpawn

      private int ticksUntilNextSpawn
  • Constructor Details

    • PhantomSpawner

      public PhantomSpawner()
  • Method Details

    • spawn

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