Package net.minecraft.world
Class WanderingTraderManager
java.lang.Object
net.minecraft.world.WanderingTraderManager
- All Implemented Interfaces:
Spawner
public class WanderingTraderManager extends Object implements Spawner
-
Field Summary
Fields Modifier and Type Field Description private ServerWorldProperties
properties
private Random
random
private int
spawnChance
private int
spawnDelay
private int
spawnTimer
-
Constructor Summary
Constructors Constructor Description WanderingTraderManager(ServerWorldProperties properties)
-
Method Summary
Modifier and Type Method Description private boolean
doesNotSuffocateAt(BlockView blockView, BlockPos blockPos)
private BlockPos
getNearbySpawnPos(WorldView worldView, BlockPos blockPos, int int2)
private boolean
method_18018(ServerWorld serverWorld)
int
spawn(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals)
Spawns entities into a world.private void
spawnLlama(ServerWorld serverWorld, WanderingTraderEntity wanderingTraderEntity, int int2)
-
Field Details
-
random
-
properties
-
spawnTimer
private int spawnTimer -
spawnDelay
private int spawnDelay -
spawnChance
private int spawnChance
-
-
Constructor Details
-
WanderingTraderManager
-
-
Method Details
-
spawn
Spawns entities into a world. -
method_18018
-
spawnLlama
private void spawnLlama(ServerWorld serverWorld, WanderingTraderEntity wanderingTraderEntity, int int2) -
getNearbySpawnPos
-
doesNotSuffocateAt
-