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 world, BlockPos pos)private BlockPosgetNearbySpawnPos(WorldView world, BlockPos pos, int range)private booleanmethod_18018(ServerWorld serverWorld)intspawn(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals)Spawns entities into a world.private voidspawnLlama(ServerWorld world, WanderingTraderEntity wanderingTrader, int range)
-
Field Details
-
random
-
properties
-
spawnTimer
private int spawnTimer -
spawnDelay
private int spawnDelay -
spawnChance
private int spawnChance
-
-
Constructor Details
-
WanderingTraderManager
-
-
Method Details