Package net.minecraft.world.gen
Class PillagerSpawner
java.lang.Object
net.minecraft.world.gen.PillagerSpawner
- All Implemented Interfaces:
Spawner
public class PillagerSpawner extends Object implements Spawner
-
Field Summary
Fields Modifier and Type Field Description private int
ticksUntilNextSpawn
-
Constructor Summary
Constructors Constructor Description PillagerSpawner()
-
Method Summary
Modifier and Type Method 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)
-
Field Details
-
ticksUntilNextSpawn
private int ticksUntilNextSpawn
-
-
Constructor Details
-
PillagerSpawner
public PillagerSpawner()
-
-
Method Details
-
spawn
Spawns entities into a world. -
spawnPillager
- Parameters:
captain
- whether the pillager is the captain of a patrol
-