Package net.minecraft.world.spawner
Class PatrolSpawner
java.lang.Object
net.minecraft.world.spawner.PatrolSpawner
- All Implemented Interfaces:
 SpecialSpawner
A spawner for pillager patrols.
 
Pillager spawns in pillager outposts are controlled at
 ChunkGenerator.getEntitySpawnList(net.minecraft.registry.entry.RegistryEntry<net.minecraft.world.biome.Biome>, net.minecraft.world.gen.StructureAccessor, net.minecraft.entity.SpawnGroup, net.minecraft.util.math.BlockPos).
- Mappings:
 Namespace Name named net/minecraft/world/spawner/PatrolSpawnerintermediary net/minecraft/class_3769official eia
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidspawn(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals) Spawns entities into a world.private booleanspawnPillager(ServerWorld world, BlockPos pos, Random random, boolean captain)  
- 
Field Details
- 
cooldown
private int cooldown- Mappings:
 Namespace Name Mixin selector named cooldownLnet/minecraft/world/spawner/PatrolSpawner;cooldown:Iintermediary field_16652Lnet/minecraft/class_3769;field_16652:Iofficial aLeia;a:I
 
 - 
 - 
Constructor Details
- 
PatrolSpawner
public PatrolSpawner() 
 - 
 - 
Method Details
- 
spawn
Spawns entities into a world.- Specified by:
 spawnin interfaceSpecialSpawner- Parameters:
 spawnMonsters- whether monsters should be spawnedspawnAnimals- whether animals should be spawned- Mappings:
 Namespace Name Mixin selector named spawnLnet/minecraft/world/spawner/SpecialSpawner;spawn(Lnet/minecraft/server/world/ServerWorld;ZZ)Vintermediary method_6445Lnet/minecraft/class_5304;method_6445(Lnet/minecraft/class_3218;ZZ)Vofficial aLdjv;a(Lasb;ZZ)V
 - 
spawnPillager
- Parameters:
 captain- whether the pillager is the captain of a patrol- Mappings:
 Namespace Name Mixin selector named spawnPillagerLnet/minecraft/world/spawner/PatrolSpawner;spawnPillager(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;Z)Zintermediary method_16575Lnet/minecraft/class_3769;method_16575(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;Z)Zofficial aLeia;a(Lasb;Liw;Lbai;Z)Z
 
 -