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 intticksUntilNextSpawn -
Constructor Summary
Constructors Constructor Description PillagerSpawner() -
Method Summary
Modifier and Type Method Description intspawn(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals)Spawns entities into a world.private booleanspawnPillager(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
-