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

public final class TrialSpawner

dsf
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 String
a
NORMAL_CONFIG_TAG_NAME
field_50177
NORMAL_CONFIG_NBT_KEY
f_316473_
public static final String
b
OMINOUS_CONFIG_TAG_NAME
field_50178
OMINOUS_CONFIG_NBT_KEY
f_314681_
public static final int
c
DETECT_PLAYER_SPAWN_BUFFER
field_47358
field_47358
f_302637_
private static final int
d
DEFAULT_TARGET_COOLDOWN_LENGTH
field_50179
field_50179
f_316421_
private static final int
e
DEFAULT_PLAYER_SCAN_RANGE
field_50180
field_50180
f_315941_
private static final int
f
MAX_MOB_TRACKING_DISTANCE
field_47359
MAX_ENTITY_DISTANCE
f_302891_
private static final int
g
MAX_MOB_TRACKING_DISTANCE_SQR
field_47360
MAX_ENTITY_DISTANCE_SQUARED
f_303092_
private static final float
h
SPAWNING_AMBIENT_SOUND_CHANCE
field_47361
field_47361
f_302617_
private final TrialSpawnerConfig
i
normalConfig
field_50181
normalConfig
f_314388_
private final TrialSpawnerConfig
j
ominousConfig
field_50182
ominousConfig
f_314347_
private final TrialSpawnerData
k
data
field_47363
data
f_302910_
private final int
l
requiredPlayerRange
field_50183
entityDetectionRange
f_315564_
private final int
m
targetCooldownLength
field_50184
cooldownLength
f_316987_
private final TrialSpawner$StateAccessor
n
stateAccessor
field_47364
trialSpawner
f_302785_
private PlayerDetector
o
playerDetector
field_47365
entityDetector
f_302944_
private final PlayerDetector$EntitySelector
p
entitySelector
field_48864
entitySelector
f_314166_
private boolean
q
overridePeacefulAndMobSpawnRule
field_47366
forceActivate
f_302722_
private boolean
r
isOminous
field_50185
ominous
f_315367_

Constructor summary

ModifierConstructor
public (TrialSpawner$StateAccessor trialSpawner, PlayerDetector entityDetector, PlayerDetector$EntitySelector entitySelector)
public (TrialSpawnerConfig normalConfig, 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()
codec()
m_307687_()
public TrialSpawnerConfig
b()
getConfig()
method_55170()
getConfig()
m_306177_()
public TrialSpawnerConfig
c()
getNormalConfig()
method_58703()
getNormalConfig()
m_319548_()
public TrialSpawnerConfig
d()
getOminousConfig()
method_58704()
getOminousConfig()
m_320710_()
private TrialSpawnerConfig
n()
getOminousConfigForSerialization()
method_58708()
getOminousConfigForSerialization()
m_324376_()
public void
a(aqu arg0, jd arg1)
applyOminous(ServerLevel arg0, BlockPos arg1)
method_58700(class_3218 arg0, class_2338 arg1)
setOminous(ServerWorld world, BlockPos pos)
m_324951_(C_12_ p_327778_, C_4675_ arg1)
public void
b(aqu arg0, jd arg1)
removeOminous(ServerLevel arg0, BlockPos arg1)
method_58702(class_3218 arg0, class_2338 arg1)
setNotOminous(ServerWorld world, BlockPos pos)
m_324138_(C_12_ p_328593_, C_4675_ arg1)
public boolean
e()
isOminous()
method_58705()
isOminous()
m_322987_()
public TrialSpawnerData
f()
getData()
method_55174()
getData()
m_305472_()
public int
g()
getTargetCooldownLength()
method_58706()
getCooldownLength()
m_320388_()
public int
h()
getRequiredPlayerRange()
method_58707()
getDetectionRadius()
m_321887_()
public TrialSpawnerState
i()
getState()
method_55175()
getSpawnerState()
m_305684_()
public void
a(dcw arg0, dsi 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
j()
markUpdated()
method_55176()
updateListeners()
m_306727_()
public PlayerDetector
k()
getPlayerDetector()
method_55177()
getEntityDetector()
m_305791_()
public PlayerDetector$EntitySelector
l()
getEntitySelector()
method_56728()
getEntitySelector()
m_323449_()
public boolean
a(dcw arg0)
canSpawnInLevel(Level arg0)
method_55162(class_1937 arg0)
canActivate(World world)
m_305592_(C_1596_ arg0)
public Optional<UUID>
c(aqu arg0, jd 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(aqu arg0, jd arg1, akq<erw> arg2)
ejectReward(ServerLevel arg0, BlockPos arg1, ResourceKey<LootTable> arg2)
method_55159(class_3218 arg0, class_2338 arg1, class_5321<class_52> arg2)
ejectLootTable(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(dcw arg0, jd arg1, boolean arg2)
tickClient(Level arg0, BlockPos arg1, boolean arg2)
method_55165(class_1937 arg0, class_2338 arg1, boolean arg2)
tickClient(World world, BlockPos pos, boolean ominous)
m_304902_(C_1596_ p_311485_, C_4675_ p_332221_, boolean arg2)
public void
a(aqu arg0, jd arg1, boolean arg2)
tickServer(ServerLevel arg0, BlockPos arg1, boolean arg2)
method_55171(class_3218 arg0, class_2338 arg1, boolean arg2)
tickServer(ServerWorld world, BlockPos pos, boolean ominous)
m_306335_(C_12_ p_312836_, C_4675_ p_332881_, boolean arg2)
private static boolean
a(aqu arg0, jd 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(dcw arg0, exc arg1, exc 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(dcw arg0, jd arg1, ayw arg2, lq arg3)
addSpawnParticles(Level arg0, BlockPos arg1, RandomSource arg2, SimpleParticleType arg3)
method_55166(class_1937 arg0, class_2338 arg1, class_5819 arg2, class_2400 arg3)
addMobSpawnParticles(World world, BlockPos pos, Random random, SimpleParticleType particle)
m_320714_(C_1596_ p_333032_, C_4675_ p_328008_, C_212974_ p_330922_, C_4761_ p_331431_)
public static void
a(dcw arg0, jd arg1, ayw arg2)
addBecomeOminousParticles(Level arg0, BlockPos arg1, RandomSource arg2)
method_58701(class_1937 arg0, class_2338 arg1, class_5819 arg2)
addTrialOmenParticles(World world, BlockPos pos, Random random)
m_307155_(C_1596_ p_312837_, C_4675_ p_311261_, C_212974_ p_312356_)
public static void
a(dcw arg0, jd arg1, ayw arg2, int arg3, lk 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)
addDetectionParticles(World world, BlockPos pos, Random random, int playerCount, ParticleEffect particle)
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(dcw arg0, jd arg1, ayw 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(dse arg0)
setPlayerDetector(PlayerDetector arg0)
method_55168(class_8962 arg0)
setEntityDetector(EntityDetector detector)
m_305658_(C_302097_ arg0)
public void
m()
overridePeacefulAndMobSpawnRule()
method_55178()
forceActivate()
m_306621_()