Class PillagerSpawner

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

public class PillagerSpawner
extends Object
implements Spawner
  • Field Details

    • ticksUntilNextSpawn

      private int ticksUntilNextSpawn
  • Constructor Details

    • PillagerSpawner

      public PillagerSpawner()
  • 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
    • spawnPillager

      private boolean spawnPillager​(ServerWorld world, BlockPos pos, Random random, boolean captain)
      Parameters:
      captain - whether the pillager is the captain of a patrol