net.minecraft.world.entity.npc

public class WanderingTraderSpawner

implements CustomSpawner

cpq
net.minecraft.world.entity.npc.WanderingTraderSpawner
net.minecraft.class_3990
net.minecraft.world.WanderingTraderManager
net.minecraft.world.entity.npc.MobSpawnerTrader

Field summary

Modifier and TypeField
private static final int
b
DEFAULT_TICK_DELAY
field_30631
DEFAULT_SPAWN_TIMER
public static final int
a
DEFAULT_SPAWN_DELAY
field_30630
DEFAULT_SPAWN_DELAY
private static final int
c
MIN_SPAWN_CHANCE
field_30632
MIN_SPAWN_CHANCE
private static final int
d
MAX_SPAWN_CHANCE
field_30633
MAX_SPAWN_CHANCE
private static final int
e
SPAWN_CHANCE_INCREASE
field_30634
DEFAULT_SPAWN_CHANCE
private static final int
f
SPAWN_ONE_IN_X_CHANCE
field_30635
field_30635
private static final int
g
NUMBER_OF_SPAWN_ATTEMPTS
field_30636
field_30636
private final RandomSource
h
random
field_17726
random
private final ServerLevelData
i
serverLevelData
field_24387
properties
private int
j
tickDelay
field_17728
spawnTimer
private int
k
spawnDelay
field_17729
spawnDelay
private int
l
spawnChance
field_17730
spawnChance

Constructor summary

ModifierConstructor
public (ServerLevelData properties)

Method summary

Modifier and TypeMethod
public int
a(ash arg0, boolean arg1, boolean arg2)
tick(ServerLevel arg0, boolean arg1, boolean arg2)
method_6445(class_3218 arg0, boolean arg1, boolean arg2)
spawn(ServerWorld arg0, boolean arg1, boolean arg2)
private boolean
a(ash arg0)
spawn(ServerLevel arg0)
method_18018(class_3218 arg0)
trySpawn(ServerWorld world)
private void
a(ash arg0, cpp arg1, int arg2)
tryToSpawnLlamaFor(ServerLevel arg0, WanderingTrader arg1, int arg2)
method_18016(class_3218 arg0, class_3989 arg1, int arg2)
spawnLlama(ServerWorld world, WanderingTraderEntity wanderingTrader, int range)
private BlockPos
a(dhl arg0, jh arg1, int arg2)
findSpawnPositionNear(LevelReader arg0, BlockPos arg1, int arg2)
method_18017(class_4538 arg0, class_2338 arg1, int arg2)
getNearbySpawnPos(WorldView world, BlockPos pos, int range)
private boolean
a(dgn arg0, jh arg1)
hasEnoughSpace(BlockGetter arg0, BlockPos arg1)
method_23279(class_1922 arg0, class_2338 arg1)
doesNotSuffocateAt(BlockView world, BlockPos pos)