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.block.spawner.TrialSpawnerLogic
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
public static final String
b
OMINOUS_CONFIG_TAG_NAME
field_50178
OMINOUS_CONFIG_NBT_KEY
public static final int
c
DETECT_PLAYER_SPAWN_BUFFER
field_47358
field_47358
private static final int
d
DEFAULT_TARGET_COOLDOWN_LENGTH
field_50179
DEFAULT_COOLDOWN_LENGTH
private static final int
e
DEFAULT_PLAYER_SCAN_RANGE
field_50180
DEFAULT_ENTITY_DETECTION_RANGE
private static final int
f
MAX_MOB_TRACKING_DISTANCE
field_47359
MAX_ENTITY_DISTANCE
private static final int
g
MAX_MOB_TRACKING_DISTANCE_SQR
field_47360
MAX_ENTITY_DISTANCE_SQUARED
private static final float
h
SPAWNING_AMBIENT_SOUND_CHANCE
field_47361
SOUND_RATE_PER_TICK
private Holder<TrialSpawnerConfig>
i
normalConfig
field_50181
normalConfig
private Holder<TrialSpawnerConfig>
j
ominousConfig
field_50182
ominousConfig
private final TrialSpawnerData
k
data
field_47363
data
private final int
l
requiredPlayerRange
field_50183
entityDetectionRange
private final int
m
targetCooldownLength
field_50184
cooldownLength
private final TrialSpawner$StateAccessor
n
stateAccessor
field_47364
trialSpawner
private PlayerDetector
o
playerDetector
field_47365
entityDetector
private final PlayerDetector$EntitySelector
p
entitySelector
field_48864
entitySelector
private boolean
q
overridePeacefulAndMobSpawnRule
field_47366
forceActivate
private boolean
r
isOminous
field_50185
ominous

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()
codec()
public TrialSpawnerConfig
b()
getConfig()
method_55170()
getConfig()
public TrialSpawnerConfig
c()
getNormalConfig()
method_58703()
getNormalConfig()
public TrialSpawnerConfig
d()
getOminousConfig()
method_58704()
getOminousConfig()
public void
a(ard arg0, ji arg1)
applyOminous(ServerLevel arg0, BlockPos arg1)
method_58700(class_3218 arg0, class_2338 arg1)
setOminous(ServerWorld world, BlockPos pos)
public void
b(ard arg0, ji arg1)
removeOminous(ServerLevel arg0, BlockPos arg1)
method_58702(class_3218 arg0, class_2338 arg1)
setNotOminous(ServerWorld world, BlockPos pos)
public boolean
e()
isOminous()
method_58705()
isOminous()
public TrialSpawnerData
f()
getData()
method_55174()
getData()
public int
g()
getTargetCooldownLength()
method_58706()
getCooldownLength()
public int
h()
getRequiredPlayerRange()
method_58707()
getDetectionRadius()
public TrialSpawnerState
i()
getState()
method_55175()
getSpawnerState()
public void
a(dgj arg0, dwe arg1)
setState(Level arg0, TrialSpawnerState arg1)
method_55163(class_1937 arg0, class_8967 arg1)
setSpawnerState(World world, TrialSpawnerState spawnerState)
public void
j()
markUpdated()
method_55176()
updateListeners()
public PlayerDetector
k()
getPlayerDetector()
method_55177()
getEntityDetector()
public PlayerDetector$EntitySelector
l()
getEntitySelector()
method_56728()
getEntitySelector()
public boolean
a(ard arg0)
canSpawnInLevel(ServerLevel arg0)
method_55162(class_3218 arg0)
canActivate(ServerWorld world)
public Optional<UUID>
c(ard arg0, ji arg1)
spawnMob(ServerLevel arg0, BlockPos arg1)
method_55158(class_3218 arg0, class_2338 arg1)
trySpawnMob(ServerWorld world, BlockPos pos)
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)
ejectLootTable(ServerWorld world, BlockPos pos, RegistryKey<LootTable> lootTable)
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)
tickClient(World world, BlockPos pos, boolean ominous)
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)
tickServer(ServerWorld world, BlockPos pos, boolean ominous)
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)
shouldRemoveMobFromData(ServerWorld world, BlockPos pos, UUID uuid)
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)
hasLineOfSight(World world, Vec3d spawnerPos, Vec3d spawnPos)
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)
addMobSpawnParticles(World world, BlockPos pos, Random random, SimpleParticleType particle)
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)
addTrialOmenParticles(World world, BlockPos pos, Random random)
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)
addDetectionParticles(World world, BlockPos pos, Random random, int playerCount, ParticleEffect particle)
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)
addEjectItemParticles(World world, BlockPos pos, Random random)
public void
a(but<?> arg0, dgj arg1)
overrideEntityToSpawn(EntityType<?> arg0, Level arg1)
method_65372(class_1299<?> arg0, class_1937 arg1)
setEntityType(EntityType<?> entityType, World world)
public void
a(dvz arg0)
setPlayerDetector(PlayerDetector arg0)
method_55168(class_8962 arg0)
setEntityDetector(EntityDetector detector)
public void
m()
overridePeacefulAndMobSpawnRule()
method_55178()
forceActivate()