Modifier and Type | Field and Description |
---|---|
private ServerWorldProperties |
properties |
private Random |
random |
private int |
spawnChance |
private int |
spawnDelay |
private int |
spawnTimer |
Constructor and Description |
---|
WanderingTraderManager(ServerWorldProperties properties) |
Modifier and Type | Method and 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) |
private final Random random
private final ServerWorldProperties properties
private int spawnTimer
private int spawnDelay
private int spawnChance
public WanderingTraderManager(ServerWorldProperties properties)
public int spawn(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals)
private boolean method_18018(ServerWorld serverWorld)
private void spawnLlama(ServerWorld serverWorld, WanderingTraderEntity wanderingTraderEntity, int int2)
@Nullable private BlockPos getNearbySpawnPos(WorldView worldView, BlockPos blockPos, int int2)