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

public final class TrialSpawner

dwa
net.minecraft.world.level.block.entity.trialspawner.TrialSpawner
net.minecraft.class_8963
net.minecraft.unmapped.C_jelkcvqk
net.minecraft.block.spawner.TrialSpawnerLogic
net.minecraft.world.TrialSpawnerLogic
net.minecraft.src.C_301982_
net.minecraft.world.level.block.entity.trialspawner.TrialSpawner

Field summary

Modifier and TypeField
public static final String
a
NORMAL_CONFIG_TAG_NAME
field_50177
f_gjdzldrq
NORMAL_CONFIG_NBT_KEY
f_316473_
public static final String
b
OMINOUS_CONFIG_TAG_NAME
field_50178
f_xoglppxn
OMINOUS_CONFIG_NBT_KEY
f_314681_
public static final int
c
DETECT_PLAYER_SPAWN_BUFFER
field_47358
f_ggxvkzdp
field_47358
f_302637_
private static final int
d
DEFAULT_TARGET_COOLDOWN_LENGTH
field_50179
f_mmgnanmo
DEFAULT_COOLDOWN_LENGTH
f_316421_
private static final int
e
DEFAULT_PLAYER_SCAN_RANGE
field_50180
f_kurwkuaj
DEFAULT_ENTITY_DETECTION_RANGE
f_315941_
private static final int
f
MAX_MOB_TRACKING_DISTANCE
field_47359
f_sobdyvtw
MAX_ENTITY_DISTANCE
MAX_MOB_TRACKING_RANGE
f_302891_
private static final int
g
MAX_MOB_TRACKING_DISTANCE_SQR
field_47360
f_jjqhihbg
MAX_ENTITY_DISTANCE_SQUARED
MAX_MOB_TRACKING_DISTANCE
f_303092_
private static final float
h
SPAWNING_AMBIENT_SOUND_CHANCE
field_47361
f_cyizsevm
SOUND_RATE_PER_TICK
AMBIENT_SOUND_CHANCE
f_302617_
private Holder<TrialSpawnerConfig>
i
normalConfig
field_50181
f_xvaxtoox
normalConfig
normalConfig
f_314388_
private Holder<TrialSpawnerConfig>
j
ominousConfig
field_50182
f_xcfvwbbl
ominousConfig
ominousConfig
f_314347_
private final TrialSpawnerData
k
data
field_47363
f_gtjnizww
data
data
f_302910_
private final int
l
requiredPlayerRange
field_50183
f_domukczm
entityDetectionRange
requiredPlayerRange
f_315564_
private final int
m
targetCooldownLength
field_50184
f_nalzpmxu
cooldownLength
targetCooldownLength
f_316987_
private final TrialSpawner$StateAccessor
n
stateAccessor
field_47364
f_jgbopvuf
trialSpawner
spawner
f_302785_
private PlayerDetector
o
playerDetector
field_47365
f_byggmrue
entityDetector
playerDetector
f_302944_
private final PlayerDetector$EntitySelector
p
entitySelector
field_48864
f_rqyxrnno
entitySelector
playerDetectionSelector
f_314166_
private boolean
q
overridePeacefulAndMobSpawnRule
field_47366
f_gbkgifex
forceActivate
forceSpawning
f_302722_
private boolean
r
isOminous
field_50185
f_oeictsyk
ominous
ominous
f_315367_

Constructor summary

ModifierConstructor
public (TrialSpawner$StateAccessor trialSpawner, PlayerDetector entityDetector, PlayerDetector$EntitySelector entitySelector)
public (Holder<TrialSpawnerConfig> normalConfig, Holder<TrialSpawnerConfig> ominousConfig, TrialSpawnerData data, int cooldownLength, int entityDetectionRange, TrialSpawner$StateAccessor trialSpawner, PlayerDetector entityDetector, PlayerDetector$EntitySelector entitySelector)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.Codec<TrialSpawner>
a()
codec()
method_55156()
m_hvfivtpr()
codec()
getCodec()
m_307687_()
public TrialSpawnerConfig
b()
getConfig()
method_55170()
m_xxjyblvm()
getConfig()
getConfig()
m_306177_()
public TrialSpawnerConfig
c()
getNormalConfig()
method_58703()
m_wablivuq()
getNormalConfig()
getNormalConfig()
m_319548_()
public TrialSpawnerConfig
d()
getOminousConfig()
method_58704()
m_hxfvrqzw()
getOminousConfig()
getOminousConfig()
m_320710_()
public void
a(ard arg0, ji arg1)
applyOminous(ServerLevel arg0, BlockPos arg1)
method_58700(class_3218 arg0, class_2338 arg1)
m_oadpbnsh(C_bdwnwhiu arg0, C_hynzadkk arg1)
setOminous(ServerWorld world, BlockPos pos)
m_oadpbnsh(ServerWorld world, BlockPos pos)
m_324951_(C_12_ p_327778_, C_4675_ arg1)
public void
b(ard arg0, ji arg1)
removeOminous(ServerLevel arg0, BlockPos arg1)
method_58702(class_3218 arg0, class_2338 arg1)
m_nszglagl(C_bdwnwhiu arg0, C_hynzadkk arg1)
setNotOminous(ServerWorld world, BlockPos pos)
m_nszglagl(ServerWorld world, BlockPos pos)
m_324138_(C_12_ p_328593_, C_4675_ arg1)
public boolean
e()
isOminous()
method_58705()
m_dgbojbgg()
isOminous()
isOminous()
m_322987_()
public TrialSpawnerData
f()
getData()
method_55174()
m_uohhenov()
getData()
getData()
m_305472_()
public int
g()
getTargetCooldownLength()
method_58706()
m_ulelhmwm()
getCooldownLength()
getTargetCooldownLength()
m_320388_()
public int
h()
getRequiredPlayerRange()
method_58707()
m_dbjsyosp()
getDetectionRadius()
getRequiredPlayerRange()
m_321887_()
public TrialSpawnerState
i()
getState()
method_55175()
m_gtgamtxz()
getSpawnerState()
getState()
m_305684_()
public void
a(dgj arg0, dwe 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)
setState(World world, TrialSpawnerState state)
m_304838_(C_1596_ p_312484_, C_302094_ arg1)
public void
j()
markUpdated()
method_55176()
m_zmvyuvfy()
updateListeners()
updateListeners()
m_306727_()
public PlayerDetector
k()
getPlayerDetector()
method_55177()
m_bfmdqsfz()
getEntityDetector()
getPlayerDetector()
m_305791_()
public PlayerDetector$EntitySelector
l()
getEntitySelector()
method_56728()
m_ykbnfxwa()
getEntitySelector()
getPlayerDetectionSelector()
m_323449_()
public boolean
a(ard arg0)
canSpawnInLevel(ServerLevel arg0)
method_55162(class_3218 arg0)
m_ukxfwbge(C_bdwnwhiu arg0)
canActivate(ServerWorld world)
canSpawnMobs(ServerWorld world)
m_305592_(C_12_ arg0)
public Optional<UUID>
c(ard arg0, ji 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)
spawnMob(ServerWorld world, BlockPos pos)
m_305361_(C_12_ p_313108_, C_4675_ arg1)
public void
a(ard arg0, ji arg1, aku<evx> arg2)
ejectReward(ServerLevel arg0, BlockPos arg1, ResourceKey<LootTable> arg2)
method_55159(class_3218 arg0, class_2338 arg1, class_5321<class_52> arg2)
m_ggqvmzns(C_bdwnwhiu arg0, C_hynzadkk arg1, C_xhhleach<C_inwsuliy> arg2)
ejectLootTable(ServerWorld world, BlockPos pos, RegistryKey<LootTable> lootTable)
ejectLoot(ServerWorld world, BlockPos pos, RegistryKey<LootTable> lootTable)
m_306218_(C_12_ p_311547_, C_4675_ p_330647_, C_5264_<C_2822_> arg2)
public void
a(dgj arg0, ji arg1, boolean arg2)
tickClient(Level arg0, BlockPos arg1, boolean arg2)
method_55165(class_1937 arg0, class_2338 arg1, boolean arg2)
m_bftllosi(C_cdctfzbn arg0, C_hynzadkk arg1, boolean arg2)
tickClient(World world, BlockPos pos, boolean ominous)
tickClient(World world, BlockPos pos, boolean ominous)
m_304902_(C_1596_ p_311485_, C_4675_ p_332221_, boolean arg2)
public void
a(ard arg0, ji arg1, boolean arg2)
tickServer(ServerLevel arg0, BlockPos arg1, boolean arg2)
method_55171(class_3218 arg0, class_2338 arg1, boolean arg2)
m_mugawpjd(C_bdwnwhiu arg0, C_hynzadkk arg1, boolean arg2)
tickServer(ServerWorld world, BlockPos pos, boolean ominous)
tickServer(ServerWorld world, BlockPos pos, boolean ominous)
m_306335_(C_12_ p_312836_, C_4675_ p_332881_, boolean arg2)
private static boolean
a(ard arg0, ji 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)
shouldRemoveMobFromData(ServerWorld world, BlockPos pos, UUID uuid)
m_306734_(C_12_ p_312275_, C_4675_ p_310158_, UUID p_312011_)
private static boolean
a(dgj arg0, fbb arg1, fbb 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)
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(dgj arg0, ji arg1, azh arg2, lx arg3)
addSpawnParticles(Level arg0, BlockPos arg1, RandomSource arg2, SimpleParticleType arg3)
method_55166(class_1937 arg0, class_2338 arg1, class_5819 arg2, class_2400 arg3)
m_bfccdstr(C_cdctfzbn arg0, C_hynzadkk arg1, C_rlomrsco arg2, C_lwmufxcy arg3)
addMobSpawnParticles(World world, BlockPos pos, Random random, SimpleParticleType particle)
addSpawnParticles(World world, BlockPos pos, RandomGenerator random, DefaultParticleType arg3)
m_320714_(C_1596_ p_333032_, C_4675_ p_328008_, C_212974_ p_330922_, C_4761_ p_331431_)
public static void
a(dgj arg0, ji arg1, azh arg2)
addBecomeOminousParticles(Level arg0, BlockPos arg1, RandomSource arg2)
method_58701(class_1937 arg0, class_2338 arg1, class_5819 arg2)
m_rjdmwubv(C_cdctfzbn arg0, C_hynzadkk arg1, C_rlomrsco arg2)
addTrialOmenParticles(World world, BlockPos pos, Random random)
m_rjdmwubv(World world, BlockPos pos, RandomGenerator random)
m_307155_(C_1596_ p_312837_, C_4675_ p_311261_, C_212974_ p_312356_)
public static void
a(dgj arg0, ji arg1, azh arg2, int arg3, lr arg4)
addDetectPlayerParticles(Level arg0, BlockPos arg1, RandomSource arg2, int arg3, ParticleOptions arg4)
method_55167(class_1937 arg0, class_2338 arg1, class_5819 arg2, int arg3, class_2394 arg4)
m_wubotvnx(C_cdctfzbn arg0, C_hynzadkk arg1, C_rlomrsco arg2, int arg3, C_nqucohct arg4)
addDetectionParticles(World world, BlockPos pos, Random random, int playerCount, ParticleEffect particle)
addDetectionParticles(World world, BlockPos pos, RandomGenerator random, int detectedPlayers, ParticleEffect arg4)
m_306813_(C_1596_ p_309415_, C_4675_ p_309941_, C_212974_ p_310263_, int p_310988_, C_4756_ p_331085_)
public static void
b(dgj arg0, ji arg1, azh 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)
addEjectItemParticles(World world, BlockPos pos, RandomGenerator random)
m_306726_(C_1596_ p_311170_, C_4675_ p_309958_, C_212974_ p_309409_)
public void
a(but<?> arg0, dgj arg1)
overrideEntityToSpawn(EntityType<?> arg0, Level arg1)
method_65372(class_1299<?> arg0, class_1937 arg1)
m_riwkvjis(C_ogavsvbr<?> arg0, C_cdctfzbn arg1)
setEntityType(EntityType<?> entityType, World world)
m_riwkvjis(EntityType<?> arg0, World world)
m_374148_(C_513_<?> p_376000_, C_1596_ arg1)
public void
a(dvz arg0)
setPlayerDetector(PlayerDetector arg0)
method_55168(class_8962 arg0)
m_wujvpyvr(C_kkiexczn arg0)
setEntityDetector(EntityDetector detector)
setPlayerDetector(EntityDetector playerDetector)
m_305658_(C_302097_ arg0)
public void
m()
overridePeacefulAndMobSpawnRule()
method_55178()
m_kdobayrz()
forceActivate()
forceSpawning()
m_306621_()