Package net.minecraft.world.spawner
Class WanderingTraderSpawner
java.lang.Object
net.minecraft.world.spawner.WanderingTraderSpawner
- All Implemented Interfaces:
ISpecialSpawner
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Random
private final IServerWorldInfo
private int
private int
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate BlockPos
findSpawnPositionNear
(IWorldReader p_234561_1_, BlockPos p_234561_2_, int p_234561_3_) private boolean
hasEnoughSpace
(IBlockReader p_234560_1_, BlockPos p_234560_2_) private boolean
spawn
(ServerWorld p_234562_1_) int
tick
(ServerWorld p_230253_1_, boolean p_230253_2_, boolean p_230253_3_) private void
tryToSpawnLlamaFor
(ServerWorld p_242373_1_, WanderingTraderEntity p_242373_2_, int p_242373_3_)
-
Field Details
-
random
-
serverLevelData
-
tickDelay
private int tickDelay -
spawnDelay
private int spawnDelay -
spawnChance
private int spawnChance
-
-
Constructor Details
-
WanderingTraderSpawner
-
-
Method Details
-
tick
- Specified by:
tick
in interfaceISpecialSpawner
-
spawn
-
tryToSpawnLlamaFor
private void tryToSpawnLlamaFor(ServerWorld p_242373_1_, WanderingTraderEntity p_242373_2_, int p_242373_3_) -
findSpawnPositionNear
@Nullable private BlockPos findSpawnPositionNear(IWorldReader p_234561_1_, BlockPos p_234561_2_, int p_234561_3_) -
hasEnoughSpace
-