net.minecraft.world.level.block.entity.trialspawner

public final class TrialSpawner

dir
net.minecraft.world.level.block.entity.trialspawner.TrialSpawner
net.minecraft.class_8963
net.minecraft.block.spawner.TrialSpawnerLogic
net.minecraft.src.C_301982_
net.minecraft.world.level.block.entity.trialspawner.TrialSpawner

Field summary

Modifier and TypeField
public static final int
a
DETECT_PLAYER_SPAWN_BUFFER
field_47358
field_47358
f_302637_
private static final int
b
MAX_MOB_TRACKING_DISTANCE
field_47359
MAX_ENTITY_DISTANCE
f_302891_
private static final int
c
MAX_MOB_TRACKING_DISTANCE_SQR
field_47360
MAX_ENTITY_DISTANCE_SQUARED
f_303092_
private static final float
d
SPAWNING_AMBIENT_SOUND_CHANCE
field_47361
field_47361
f_302617_
private final TrialSpawnerConfig
e
config
field_47362
config
f_302564_
private final TrialSpawnerData
f
data
field_47363
data
f_302910_
private final TrialSpawner$StateAccessor
g
stateAccessor
field_47364
trialSpawner
f_302785_
private PlayerDetector
h
playerDetector
field_47365
entityDetector
f_302944_
private boolean
i
overridePeacefulAndMobSpawnRule
field_47366
forceActivate
f_302722_

Constructor summary

ModifierConstructor
public (TrialSpawner$StateAccessor trialSpawner, PlayerDetector entityDetector)
public (TrialSpawnerConfig config, TrialSpawnerData data, TrialSpawner$StateAccessor trialSpawner, PlayerDetector entityDetector)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.Codec<TrialSpawner>
a()
codec()
method_55156()
codec()
m_307687_()
public TrialSpawnerConfig
b()
getConfig()
method_55170()
getConfig()
m_306177_()
public TrialSpawnerData
c()
getData()
method_55174()
getData()
m_305472_()
public TrialSpawnerState
d()
getState()
method_55175()
getSpawnerState()
m_305684_()
public void
a(ctp arg0, diu arg1)
setState(Level arg0, TrialSpawnerState arg1)
method_55163(class_1937 arg0, class_8967 arg1)
setSpawnerState(World world, TrialSpawnerState spawnerState)
m_304838_(C_1596_ p_312484_, C_302094_ arg1)
public void
e()
markUpdated()
method_55176()
updateListeners()
m_306727_()
public PlayerDetector
f()
getPlayerDetector()
method_55177()
getEntityDetector()
m_305791_()
public boolean
a(ctp arg0)
canSpawnInLevel(Level arg0)
method_55162(class_1937 arg0)
canActivate(World world)
m_305592_(C_1596_ arg0)
public Optional<UUID>
a(and arg0, hx arg1)
spawnMob(ServerLevel arg0, BlockPos arg1)
method_55158(class_3218 arg0, class_2338 arg1)
trySpawnMob(ServerWorld world, BlockPos pos)
m_305361_(C_12_ p_313108_, C_4675_ arg1)
public void
a(and arg0, hx arg1, ahg arg2)
ejectReward(ServerLevel arg0, BlockPos arg1, ResourceLocation arg2)
method_55159(class_3218 arg0, class_2338 arg1, class_2960 arg2)
ejectLootTable(ServerWorld world, BlockPos pos, Identifier lootTable)
m_306218_(C_12_ p_311547_, C_4675_ p_311861_, C_5265_ arg2)
public void
a(ctp arg0, hx arg1)
tickClient(Level arg0, BlockPos arg1)
method_55165(class_1937 arg0, class_2338 arg1)
tickClient(World world, BlockPos pos)
m_304902_(C_1596_ p_311485_, C_4675_ arg1)
public void
b(and arg0, hx arg1)
tickServer(ServerLevel arg0, BlockPos arg1)
method_55171(class_3218 arg0, class_2338 arg1)
tickServer(ServerWorld world, BlockPos pos)
m_306335_(C_12_ p_312836_, C_4675_ arg1)
private static boolean
a(and arg0, hx arg1, UUID arg2)
shouldMobBeUntracked(ServerLevel arg0, BlockPos arg1, UUID arg2)
method_55160(class_3218 arg0, class_2338 arg1, UUID arg2)
shouldRemoveMobFromData(ServerWorld world, BlockPos pos, UUID uuid)
m_306734_(C_12_ p_312275_, C_4675_ p_310158_, UUID p_312011_)
private static boolean
a(ctp arg0, elt arg1, elt arg2)
inLineOfSight(Level arg0, Vec3 arg1, Vec3 arg2)
method_55164(class_1937 arg0, class_243 arg1, class_243 arg2)
hasLineOfSight(World world, Vec3d spawnerPos, Vec3d spawnPos)
m_306844_(C_1596_ p_311873_, C_3046_ p_311845_, C_3046_ p_312229_)
public static void
a(ctp arg0, hx arg1, auv arg2)
addSpawnParticles(Level arg0, BlockPos arg1, RandomSource arg2)
method_55166(class_1937 arg0, class_2338 arg1, class_5819 arg2)
addMobSpawnParticles(World world, BlockPos pos, Random random)
m_307155_(C_1596_ p_312837_, C_4675_ p_311261_, C_212974_ p_312356_)
public static void
a(ctp arg0, hx arg1, auv arg2, int arg3)
addDetectPlayerParticles(Level arg0, BlockPos arg1, RandomSource arg2, int arg3)
method_55167(class_1937 arg0, class_2338 arg1, class_5819 arg2, int arg3)
addDetectionParticles(World world, BlockPos pos, Random random, int playerCount)
m_306813_(C_1596_ p_309415_, C_4675_ p_309941_, C_212974_ p_310263_, int p_310988_)
public static void
b(ctp arg0, hx arg1, auv arg2)
addEjectItemParticles(Level arg0, BlockPos arg1, RandomSource arg2)
method_55173(class_1937 arg0, class_2338 arg1, class_5819 arg2)
addEjectItemParticles(World world, BlockPos pos, Random random)
m_306726_(C_1596_ p_311170_, C_4675_ p_309958_, C_212974_ p_309409_)
public void
a(diq arg0)
setPlayerDetector(PlayerDetector arg0)
method_55168(class_8962 arg0)
setEntityDetector(EntityDetector detector)
m_305658_(C_302097_ arg0)
public void
g()
overridePeacefulAndMobSpawnRule()
method_55178()
forceActivate()
m_306621_()