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 ServerWorldPropertiespropertiesprivate Randomrandomprivate intspawnChanceprivate intspawnDelayprivate intspawnTimer -
Constructor Summary
Constructors Constructor Description WanderingTraderManager(ServerWorldProperties properties) -
Method Summary
Modifier and Type Method Description private booleandoesNotSuffocateAt(BlockView blockView, BlockPos blockPos)private BlockPosgetNearbySpawnPos(WorldView worldView, BlockPos blockPos, int int2)private booleanmethod_18018(ServerWorld serverWorld)intspawn(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals)Spawns entities into a world.private voidspawnLlama(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
-