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/PatrolSpawner- intermediary - net/minecraft/class_3769- official - ede
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintspawn(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals) Spawns entities into a world.private booleanspawnPillager(ServerWorld world, BlockPos pos, Random random, boolean captain) 
- 
Field Details- 
cooldownprivate int cooldown- Mappings:
- Namespace - Name - Mixin selector - named - cooldown- Lnet/minecraft/world/spawner/PatrolSpawner;cooldown:I- intermediary - field_16652- Lnet/minecraft/class_3769;field_16652:I- official - a- Lede;a:I
 
 
- 
- 
Constructor Details- 
PatrolSpawnerpublic PatrolSpawner()
 
- 
- 
Method Details- 
spawnSpawns entities into a world.- Specified by:
- spawnin interface- SpecialSpawner
- Parameters:
- spawnMonsters- whether monsters should be spawned
- spawnAnimals- whether animals should be spawned
- Returns:
- the number of entities spawned
- Mappings:
- Namespace - Name - Mixin selector - named - spawn- Lnet/minecraft/world/spawner/SpecialSpawner;spawn(Lnet/minecraft/server/world/ServerWorld;ZZ)I- intermediary - method_6445- Lnet/minecraft/class_5304;method_6445(Lnet/minecraft/class_3218;ZZ)I- official - a- Ldfv;a(Lard;ZZ)I
 
- 
spawnPillager- Parameters:
- captain- whether the pillager is the captain of a patrol
- Mappings:
- Namespace - Name - Mixin selector - named - spawnPillager- Lnet/minecraft/world/spawner/PatrolSpawner;spawnPillager(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;Z)Z- intermediary - method_16575- Lnet/minecraft/class_3769;method_16575(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;Z)Z- official - a- Lede;a(Lard;Lji;Lazh;Z)Z
 
 
-