Modifier and Type | Field and Description |
---|---|
private int |
ticksUntilNextSpawn |
Constructor and Description |
---|
PillagerSpawner() |
Modifier and Type | Method and Description |
---|---|
int |
spawn(ServerWorld world,
boolean spawnMonsters,
boolean spawnAnimals)
Spawns entities into a world.
|
private boolean |
spawnPillager(ServerWorld world,
BlockPos pos,
Random random,
boolean captain) |
public int spawn(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals)
private boolean spawnPillager(ServerWorld world, BlockPos pos, Random random, boolean captain)
captain
- whether the pillager is the captain of a patrol