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.unmapped.C_jelkcvqk
net.minecraft.block.spawner.TrialSpawnerLogic
net.minecraft.unmapped.C_jelkcvqk
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
f_ggxvkzdp
field_47358
f_302637_
private static final int
b
MAX_MOB_TRACKING_DISTANCE
field_47359
f_sobdyvtw
MAX_ENTITY_DISTANCE
f_302891_
private static final int
c
MAX_MOB_TRACKING_DISTANCE_SQR
field_47360
f_jjqhihbg
MAX_ENTITY_DISTANCE_SQUARED
f_303092_
private static final float
d
SPAWNING_AMBIENT_SOUND_CHANCE
field_47361
f_cyizsevm
field_47361
f_302617_
private final TrialSpawnerConfig
e
config
field_47362
f_culvqbdv
config
f_302564_
private final TrialSpawnerData
f
data
field_47363
f_gtjnizww
data
f_302910_
private final TrialSpawner$StateAccessor
g
stateAccessor
field_47364
f_jgbopvuf
trialSpawner
f_302785_
private PlayerDetector
h
playerDetector
field_47365
f_byggmrue
entityDetector
f_302944_
private boolean
i
overridePeacefulAndMobSpawnRule
field_47366
f_gbkgifex
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()
m_hvfivtpr()
codec()
m_307687_()
public TrialSpawnerConfig
b()
getConfig()
method_55170()
m_xxjyblvm()
getConfig()
m_306177_()
public TrialSpawnerData
c()
getData()
method_55174()
m_uohhenov()
getData()
m_305472_()
public TrialSpawnerState
d()
getState()
method_55175()
m_gtgamtxz()
getSpawnerState()
m_305684_()
public void
a(ctp arg0, diu arg1)
setState(Level arg0, TrialSpawnerState arg1)
method_55163(class_1937 arg0, class_8967 arg1)
m_eoussynw(C_cdctfzbn arg0, C_mefvrcdp arg1)
setSpawnerState(World world, TrialSpawnerState spawnerState)
m_eoussynw(World world, C_mefvrcdp arg1)
m_304838_(C_1596_ p_312484_, C_302094_ arg1)
public void
e()
markUpdated()
method_55176()
m_zmvyuvfy()
updateListeners()
m_306727_()
public PlayerDetector
f()
getPlayerDetector()
method_55177()
m_bfmdqsfz()
getEntityDetector()
m_305791_()
public boolean
a(ctp arg0)
canSpawnInLevel(Level arg0)
method_55162(class_1937 arg0)
m_ukxfwbge(C_cdctfzbn arg0)
canActivate(World world)
m_ukxfwbge(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)
m_aakzgwdf(C_bdwnwhiu arg0, C_hynzadkk arg1)
trySpawnMob(ServerWorld world, BlockPos pos)
m_aakzgwdf(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)
m_ggqvmzns(C_bdwnwhiu arg0, C_hynzadkk arg1, C_ncpywfca arg2)
ejectLootTable(ServerWorld world, BlockPos pos, Identifier lootTable)
m_ggqvmzns(ServerWorld world, BlockPos pos, Identifier arg2)
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)
m_bftllosi(C_cdctfzbn arg0, C_hynzadkk arg1)
tickClient(World world, BlockPos pos)
m_bftllosi(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)
m_mugawpjd(C_bdwnwhiu arg0, C_hynzadkk arg1)
tickServer(ServerWorld world, BlockPos pos)
m_mugawpjd(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)
m_yrnnsguk(C_bdwnwhiu arg0, C_hynzadkk arg1, UUID arg2)
shouldRemoveMobFromData(ServerWorld world, BlockPos pos, UUID uuid)
m_yrnnsguk(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)
m_kyyyomnv(C_cdctfzbn arg0, C_vgpupfxx arg1, C_vgpupfxx arg2)
hasLineOfSight(World world, Vec3d spawnerPos, Vec3d spawnPos)
m_kyyyomnv(World world, Vec3d arg1, Vec3d arg2)
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)
m_bfccdstr(C_cdctfzbn arg0, C_hynzadkk arg1, C_rlomrsco arg2)
addMobSpawnParticles(World world, BlockPos pos, Random random)
m_bfccdstr(World world, BlockPos pos, RandomGenerator 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)
m_wubotvnx(C_cdctfzbn arg0, C_hynzadkk arg1, C_rlomrsco arg2, int arg3)
addDetectionParticles(World world, BlockPos pos, Random random, int playerCount)
m_wubotvnx(World world, BlockPos pos, RandomGenerator random, int arg3)
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)
m_dalhosuv(C_cdctfzbn arg0, C_hynzadkk arg1, C_rlomrsco arg2)
addEjectItemParticles(World world, BlockPos pos, Random random)
m_dalhosuv(World world, BlockPos pos, RandomGenerator 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)
m_wujvpyvr(C_kkiexczn arg0)
setEntityDetector(EntityDetector detector)
m_305658_(C_302097_ arg0)
public void
g()
overridePeacefulAndMobSpawnRule()
method_55178()
m_kdobayrz()
forceActivate()
m_306621_()