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
- Mappings:
Namespace Name official cmt
intermediary net/minecraft/class_3769
named net/minecraft/world/gen/PillagerSpawner
-
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- Mappings:
Namespace Name Mixin selector official a
Lcmt;a:I
intermediary field_16652
Lnet/minecraft/class_3769;field_16652:I
named ticksUntilNextSpawn
Lnet/minecraft/world/gen/PillagerSpawner;ticksUntilNextSpawn:I
-
-
Constructor Details
-
PillagerSpawner
public PillagerSpawner()
-
-
Method Details
-
spawn
Spawns entities into a world.- Specified by:
spawn
in 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 a
Lbth;a(Laav;ZZ)I
intermediary method_6445
Lnet/minecraft/class_5304;method_6445(Lnet/minecraft/class_3218;ZZ)I
named spawn
Lnet/minecraft/world/gen/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 a
Lcmt;a(Laav;Lfx;Ljava/util/Random;Z)Z
intermediary method_16575
Lnet/minecraft/class_3769;method_16575(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;Z)Z
named spawnPillager
Lnet/minecraft/world/gen/PillagerSpawner;spawnPillager(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;Z)Z
-