Package net.minecraft.world.spawner
Class PatrolSpawner
java.lang.Object
net.minecraft.world.spawner.PatrolSpawner
- All Implemented Interfaces:
Spawner
A spawner for pillager patrols.
Pillager spawns in pillager outposts are controlled at
ChunkGenerator.getEntitySpawnList(net.minecraft.util.registry.RegistryEntry<net.minecraft.world.biome.Biome>, net.minecraft.world.gen.StructureAccessor, net.minecraft.entity.SpawnGroup, net.minecraft.util.math.BlockPos).
- Mappings:
Namespace Name official dahintermediary net/minecraft/class_3769named net/minecraft/world/spawner/PatrolSpawner
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
cooldown
private int cooldown- Mappings:
Namespace Name Mixin selector official aLdah;a:Iintermediary field_16652Lnet/minecraft/class_3769;field_16652:Inamed cooldownLnet/minecraft/world/spawner/PatrolSpawner;cooldown:I
-
-
Constructor Details
-
PatrolSpawner
public PatrolSpawner()
-
-
Method Details
-
spawn
Spawns entities into a world.- Specified by:
spawnin interfaceSpawner- Parameters:
spawnMonsters- whether monsters should be spawnedspawnAnimals- whether animals should be spawned- Returns:
- the number of entities spawned
- Mappings:
Namespace Name Mixin selector official aLcfp;a(Lafo;ZZ)Iintermediary method_6445Lnet/minecraft/class_5304;method_6445(Lnet/minecraft/class_3218;ZZ)Inamed spawnLnet/minecraft/world/spawner/Spawner;spawn(Lnet/minecraft/server/world/ServerWorld;ZZ)I
-
spawnPillager
- Parameters:
captain- whether the pillager is the captain of a patrol- Mappings:
Namespace Name Mixin selector official aLdah;a(Lafo;Lgt;Lalu;Z)Zintermediary method_16575Lnet/minecraft/class_3769;method_16575(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;Z)Znamed spawnPillagerLnet/minecraft/world/spawner/PatrolSpawner;spawnPillager(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;Z)Z
-