net.minecraft.world.entity.npc

public class WanderingTraderSpawner

implements CustomSpawner

cbo
net.minecraft.world.entity.npc.WanderingTraderSpawner
net.minecraft.class_3990
net.minecraft.world.WanderingTraderManager
net.minecraft.src.C_1137_
net.minecraft.world.entity.npc.MobSpawnerTrader

Field summary

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

Constructor summary

ModifierConstructor
public (ServerLevelData properties)

Method summary

Modifier and TypeMethod
public int
a(akq 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)
m_7995_(C_12_ p_35923_, boolean p_35924_, boolean arg2)
private boolean
a(akq arg0)
spawn(ServerLevel arg0)
method_18018(class_3218 arg0)
trySpawn(ServerWorld world)
m_35915_(C_12_ arg0)
private void
a(akq arg0, cbn 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)
m_35917_(C_12_ p_35919_, C_1135_ p_35920_, int arg2)
private BlockPos
a(cpy arg0, gw 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)
m_35928_(C_1599_ p_35930_, C_4675_ p_35931_, int arg2)
private boolean
a(cpb arg0, gw arg1)
hasEnoughSpace(BlockGetter arg0, BlockPos arg1)
method_23279(class_1922 arg0, class_2338 arg1)
doesNotSuffocateAt(BlockView world, BlockPos pos)
m_35925_(C_1559_ p_35927_, C_4675_ arg1)