net.minecraft.world.level

public final class NaturalSpawner

dcl
net.minecraft.world.level.NaturalSpawner
net.minecraft.class_1948
net.minecraft.unmapped.C_rvfygodd
net.minecraft.world.SpawnHelper
net.minecraft.world.SpawnHelper
net.minecraft.src.C_1608_
net.minecraft.world.level.SpawnerCreature

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
c
LOGGER
field_9292
f_gvnzbxjb
LOGGER
LOGGER
f_46977_
private static final int
d
MIN_SPAWN_DISTANCE
field_30974
f_wdgynncb
MIN_SPAWN_DISTANCE
MIN_SPAWN_DISTANCE
f_151589_
public static final int
a
SPAWN_DISTANCE_CHUNK
field_30972
f_powvgtkn
field_30972
SPAWN_DISTANCE_CHUNK
f_151587_
public static final int
b
SPAWN_DISTANCE_BLOCK
field_30973
f_lqtjinwh
field_30973
SPAWN_DISTANCE_BLOCK
f_151588_
static final int
e
MAGIC_NUMBER
field_24392
f_sdhgehyh
CHUNK_AREA
CHUNK_AREA
f_46978_
private static final MobCategory[]
f
SPAWNING_CATEGORIES
field_24393
f_pjymyuez
SPAWNABLE_GROUPS
SPAWNABLE_GROUPS
f_46979_

Constructor summary

ModifierConstructor
private ()

Method summary

Modifier and TypeMethod
public static NaturalSpawner$SpawnState
a(int arg0, Iterable<bsw> arg1, dcl$b arg2, dck arg3)
createState(int arg0, Iterable<Entity> arg1, NaturalSpawner$ChunkGetter arg2, LocalMobCapCalculator arg3)
method_27815(int arg0, Iterable<class_1297> arg1, class_1948$class_5260 arg2, class_6540 arg3)
m_yfaiytxs(int arg0, Iterable<C_astfners> arg1, C_rvfygodd$C_oytuppdk arg2, C_glzmmzpj arg3)
setupSpawn(int spawningChunkCount, Iterable<Entity> entities, SpawnHelper$ChunkSource chunkSource, SpawnDensityCapper densityCapper)
setupSpawn(int spawningChunkCount, Iterable<Entity> entities, SpawnHelper$ChunkSource chunkSource, SpawnDensityCapper capper)
m_186524_(int p_186525_, Iterable<C_507_> p_186526_, C_1608_$C_1611_ p_186527_, C_182852_ p_186528_)
static Biome
a(iz arg0, dua arg1)
getRoughBiome(BlockPos arg0, ChunkAccess arg1)
method_27822(class_2338 arg0, class_2791 arg1)
m_fkjoxdxn(C_hynzadkk arg0, C_lwzmmmqr arg1)
getBiomeDirectly(BlockPos pos, Chunk chunk)
getBiomeDirectly(BlockPos pos, Chunk chunk)
m_47095_(C_4675_ p_47096_, C_2116_ p_47097_)
public static void
a(arf arg0, duk arg1, dcl$d arg2, boolean arg3, boolean arg4, boolean arg5)
spawnForChunk(ServerLevel arg0, LevelChunk arg1, NaturalSpawner$SpawnState arg2, boolean arg3, boolean arg4, boolean arg5)
method_27821(class_3218 arg0, class_2818 arg1, class_1948$class_5262 arg2, boolean arg3, boolean arg4, boolean arg5)
m_epscnpdr(C_bdwnwhiu arg0, C_hrdsvlkq arg1, C_rvfygodd$C_tsgfqxij arg2, boolean arg3, boolean arg4, boolean arg5)
spawn(ServerWorld world, WorldChunk chunk, SpawnHelper$Info info, boolean spawnAnimals, boolean spawnMonsters, boolean rareSpawn)
spawn(ServerWorld world, WorldChunk chunk, SpawnHelper$Info info, boolean spawnAnimals, boolean spawnMonsters, boolean rareSpawn)
m_47029_(C_12_ p_47030_, C_2137_ p_47031_, C_1608_$C_1613_ p_47032_, boolean p_47033_, boolean p_47034_, boolean p_47035_)
public static void
a(btu arg0, arf arg1, duk arg2, dcl$c arg3, dcl$a arg4)
spawnCategoryForChunk(MobCategory arg0, ServerLevel arg1, LevelChunk arg2, NaturalSpawner$SpawnPredicate arg3, NaturalSpawner$AfterSpawnCallback arg4)
method_8663(class_1311 arg0, class_3218 arg1, class_2818 arg2, class_1948$class_5261 arg3, class_1948$class_5259 arg4)
m_yzwxorjw(C_ormqdxci arg0, C_bdwnwhiu arg1, C_hrdsvlkq arg2, C_rvfygodd$C_kramscwh arg3, C_rvfygodd$C_hsbhgqkz arg4)
spawnEntitiesInChunk(SpawnGroup group, ServerWorld world, WorldChunk chunk, SpawnHelper$Checker checker, SpawnHelper$Runner runner)
spawnEntitiesInChunk(SpawnGroup group, ServerWorld world, WorldChunk chunk, SpawnHelper$Checker checker, SpawnHelper$Runner runner)
m_47045_(C_528_ p_47046_, C_12_ p_47047_, C_2137_ p_47048_, C_1608_$C_1612_ p_47049_, C_1608_$C_1610_ p_47050_)
public static void
a(btu arg0, arf arg1, iz arg2)
spawnCategoryForPosition(MobCategory arg0, ServerLevel arg1, BlockPos arg2)
method_35240(class_1311 arg0, class_3218 arg1, class_2338 arg2)
m_ryfmkwgu(C_ormqdxci arg0, C_bdwnwhiu arg1, C_hynzadkk arg2)
spawnEntitiesInChunk(SpawnGroup group, ServerWorld world, BlockPos pos)
spawnEntitiesInChunk(SpawnGroup group, ServerWorld world, BlockPos pos)
m_151612_(C_528_ p_151613_, C_12_ p_151614_, C_4675_ p_151615_)
public static void
a(btu arg0, arf arg1, dua arg2, iz arg3, dcl$c arg4, dcl$a arg5)
spawnCategoryForPosition(MobCategory arg0, ServerLevel arg1, ChunkAccess arg2, BlockPos arg3, NaturalSpawner$SpawnPredicate arg4, NaturalSpawner$AfterSpawnCallback arg5)
method_24930(class_1311 arg0, class_3218 arg1, class_2791 arg2, class_2338 arg3, class_1948$class_5261 arg4, class_1948$class_5259 arg5)
m_zepoyajj(C_ormqdxci arg0, C_bdwnwhiu arg1, C_lwzmmmqr arg2, C_hynzadkk arg3, C_rvfygodd$C_kramscwh arg4, C_rvfygodd$C_hsbhgqkz arg5)
spawnEntitiesInChunk(SpawnGroup group, ServerWorld world, Chunk chunk, BlockPos pos, SpawnHelper$Checker checker, SpawnHelper$Runner runner)
spawnEntitiesInChunk(SpawnGroup group, ServerWorld world, Chunk chunk, BlockPos pos, SpawnHelper$Checker checker, SpawnHelper$Runner runner)
m_47038_(C_528_ p_47039_, C_12_ p_47040_, C_2116_ p_47041_, C_4675_ p_47042_, C_1608_$C_1612_ p_47043_, C_1608_$C_1610_ p_47044_)
private static boolean
a(arf arg0, dua arg1, iz$a arg2, double arg3)
isRightDistanceToPlayerAndSpawnPoint(ServerLevel arg0, ChunkAccess arg1, BlockPos$MutableBlockPos arg2, double arg3)
method_24933(class_3218 arg0, class_2791 arg1, class_2338$class_2339 arg2, double arg3)
m_mlrfbtyw(C_bdwnwhiu arg0, C_lwzmmmqr arg1, C_hynzadkk$C_egqitdjk arg2, double arg3)
isAcceptableSpawnPosition(ServerWorld world, Chunk chunk, BlockPos$Mutable pos, double squaredDistance)
isAcceptableSpawnPosition(ServerWorld world, Chunk chunk, BlockPos$Mutable pos, double squaredDistance)
m_47024_(C_12_ p_47025_, C_2116_ p_47026_, C_4675_$C_4681_ p_47027_, double p_47028_)
private static boolean
a(arf arg0, btu arg1, dct arg2, dub arg3, ddl$c arg4, iz$a arg5, double arg6)
isValidSpawnPostitionForType(ServerLevel arg0, MobCategory arg1, StructureManager arg2, ChunkGenerator arg3, MobSpawnSettings$SpawnerData arg4, BlockPos$MutableBlockPos arg5, double arg6)
method_24934(class_3218 arg0, class_1311 arg1, class_5138 arg2, class_2794 arg3, class_5483$class_1964 arg4, class_2338$class_2339 arg5, double arg6)
m_rrltctub(C_bdwnwhiu arg0, C_ormqdxci arg1, C_rhdulivw arg2, C_kgfalbim arg3, C_ypgfhxmz$C_jmaqgdih arg4, C_hynzadkk$C_egqitdjk arg5, double arg6)
canSpawn(ServerWorld world, SpawnGroup group, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnSettings$SpawnEntry spawnEntry, BlockPos$Mutable pos, double squaredDistance)
canSpawn(ServerWorld world, SpawnGroup group, StructureManager structureManager, ChunkGenerator chunkGenerator, SpawnSettings$SpawnEntry spawnEntry, BlockPos$Mutable pos, double squaredDistance)
m_220421_(C_12_ p_220422_, C_528_ p_220423_, C_213086_ p_220424_, C_2118_ p_220425_, C_1660_$C_1664_ p_220426_, C_4675_$C_4681_ p_220427_, double p_220428_)
private static Mob
a(arf arg0, btc<?> arg1)
getMobForSpawn(ServerLevel arg0, EntityType<?> arg1)
method_24931(class_3218 arg0, class_1299<?> arg1)
m_wqzehrkl(C_bdwnwhiu arg0, C_ogavsvbr<?> arg1)
createMob(ServerWorld world, EntityType<?> type)
createMob(ServerWorld world, EntityType<?> type)
m_46988_(C_12_ p_46989_, C_513_<?> p_46990_)
private static boolean
a(arf arg0, btt arg1, double arg2)
isValidPositionForMob(ServerLevel arg0, Mob arg1, double arg2)
method_24932(class_3218 arg0, class_1308 arg1, double arg2)
m_ygdxyyxs(C_bdwnwhiu arg0, C_dxkfswlz arg1, double arg2)
isValidSpawn(ServerWorld world, MobEntity entity, double squaredDistance)
isValidSpawn(ServerWorld world, MobEntity entity, double squaredDistance)
m_46991_(C_12_ p_46992_, C_526_ p_46993_, double p_46994_)
private static Optional<MobSpawnSettings$SpawnerData>
a(arf arg0, dct arg1, dub arg2, btu arg3, azh arg4, iz arg5)
getRandomSpawnMobAt(ServerLevel arg0, StructureManager arg1, ChunkGenerator arg2, MobCategory arg3, RandomSource arg4, BlockPos arg5)
method_8664(class_3218 arg0, class_5138 arg1, class_2794 arg2, class_1311 arg3, class_5819 arg4, class_2338 arg5)
m_qxfjfphb(C_bdwnwhiu arg0, C_rhdulivw arg1, C_kgfalbim arg2, C_ormqdxci arg3, C_rlomrsco arg4, C_hynzadkk arg5)
pickRandomSpawnEntry(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, Random random, BlockPos pos)
pickRandomSpawnEntry(ServerWorld world, StructureManager structureManager, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, RandomGenerator random, BlockPos pos)
m_220429_(C_12_ p_220430_, C_213086_ p_220431_, C_2118_ p_220432_, C_528_ p_220433_, C_212974_ p_220434_, C_4675_ p_220435_)
private static boolean
a(arf arg0, dct arg1, dub arg2, btu arg3, ddl$c arg4, iz arg5)
canSpawnMobAt(ServerLevel arg0, StructureManager arg1, ChunkGenerator arg2, MobCategory arg3, MobSpawnSettings$SpawnerData arg4, BlockPos arg5)
method_8659(class_3218 arg0, class_5138 arg1, class_2794 arg2, class_1311 arg3, class_5483$class_1964 arg4, class_2338 arg5)
m_vwkuxtrc(C_bdwnwhiu arg0, C_rhdulivw arg1, C_kgfalbim arg2, C_ormqdxci arg3, C_ypgfhxmz$C_jmaqgdih arg4, C_hynzadkk arg5)
containsSpawnEntry(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, SpawnSettings$SpawnEntry spawnEntry, BlockPos pos)
containsSpawnEntry(ServerWorld world, StructureManager structureManager, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, SpawnSettings$SpawnEntry spawnEntry, BlockPos pos)
m_220436_(C_12_ p_220437_, C_213086_ p_220438_, C_2118_ p_220439_, C_528_ p_220440_, C_1660_$C_1664_ p_220441_, C_4675_ p_220442_)
private static WeightedRandomList<MobSpawnSettings$SpawnerData>
a(arf arg0, dct arg1, dub arg2, btu arg3, iz arg4, ji<dcz> arg5)
mobsAt(ServerLevel arg0, StructureManager arg1, ChunkGenerator arg2, MobCategory arg3, BlockPos arg4, Holder<Biome> arg5)
method_29950(class_3218 arg0, class_5138 arg1, class_2794 arg2, class_1311 arg3, class_2338 arg4, class_6880<class_1959> arg5)
m_eswximwy(C_bdwnwhiu arg0, C_rhdulivw arg1, C_kgfalbim arg2, C_ormqdxci arg3, C_hynzadkk arg4, C_cjzoxshv<C_orlkpefs> arg5)
getSpawnEntries(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, BlockPos pos, RegistryEntry<Biome> biomeEntry)
getSpawnEntries(ServerWorld world, StructureManager structureManager, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, BlockPos pos, Holder<Biome> biome)
m_220443_(C_12_ p_220444_, C_213086_ p_220445_, C_2118_ p_220446_, C_528_ p_220447_, C_4675_ p_220448_, C_203228_<C_1629_> p_220449_)
public static boolean
a(iz arg0, arf arg1, btu arg2, dct arg3)
isInNetherFortressBounds(BlockPos arg0, ServerLevel arg1, MobCategory arg2, StructureManager arg3)
method_38091(class_2338 arg0, class_3218 arg1, class_1311 arg2, class_5138 arg3)
m_qyxehwpd(C_hynzadkk arg0, C_bdwnwhiu arg1, C_ormqdxci arg2, C_rhdulivw arg3)
shouldUseNetherFortressSpawns(BlockPos pos, ServerWorld world, SpawnGroup spawnGroup, StructureAccessor structureAccessor)
shouldUseNetherFortressSpawns(BlockPos pos, ServerWorld world, SpawnGroup group, StructureManager structureManager)
m_220455_(C_4675_ p_220456_, C_12_ p_220457_, C_528_ p_220458_, C_213086_ p_220459_)
private static BlockPos
a(dca arg0, duk arg1)
getRandomPosWithin(Level arg0, LevelChunk arg1)
method_8657(class_1937 arg0, class_2818 arg1)
m_siwpcuar(C_cdctfzbn arg0, C_hrdsvlkq arg1)
getRandomPosInChunkSection(World world, WorldChunk chunk)
getSpawnPos(World world, WorldChunk chunk)
m_47062_(C_1596_ p_47063_, C_2137_ p_47064_)
public static boolean
a(dbg arg0, iz arg1, dse arg2, enx arg3, btc<?> arg4)
isValidEmptySpawnBlock(BlockGetter arg0, BlockPos arg1, BlockState arg2, FluidState arg3, EntityType<?> arg4)
method_8662(class_1922 arg0, class_2338 arg1, class_2680 arg2, class_3610 arg3, class_1299<?> arg4)
m_jksmltor(C_peaveboq arg0, C_hynzadkk arg1, C_txtbiemp arg2, C_xqketiuf arg3, C_ogavsvbr<?> arg4)
isClearForSpawn(BlockView blockView, BlockPos pos, BlockState state, FluidState fluidState, EntityType<?> entityType)
isClearForSpawn(BlockView blockView, BlockPos pos, BlockState state, FluidState fluidState, EntityType<?> entityType)
m_47056_(C_1559_ p_47057_, C_4675_ p_47058_, C_2064_ p_47059_, C_2691_ p_47060_, C_513_<?> p_47061_)
public static void
a(dcp arg0, ji<dcz> arg1, dbh arg2, azh arg3)
spawnMobsForChunkGeneration(ServerLevelAccessor arg0, Holder<Biome> arg1, ChunkPos arg2, RandomSource arg3)
method_8661(class_5425 arg0, class_6880<class_1959> arg1, class_1923 arg2, class_5819 arg3)
m_fndueeko(C_jmnzlycd arg0, C_cjzoxshv<C_orlkpefs> arg1, C_ynrszrtu arg2, C_rlomrsco arg3)
populateEntities(ServerWorldAccess world, RegistryEntry<Biome> biomeEntry, ChunkPos chunkPos, Random random)
populateEntities(ServerWorldAccess world, Holder<Biome> biome, ChunkPos chunkPos, RandomGenerator random)
m_220450_(C_1618_ p_220451_, C_203228_<C_1629_> p_220452_, C_1560_ p_220453_, C_212974_ p_220454_)
private static BlockPos
a(dcd arg0, btc<?> arg1, int arg2, int arg3)
getTopNonCollidingPos(LevelReader arg0, EntityType<?> arg1, int arg2, int arg3)
method_8658(class_4538 arg0, class_1299<?> arg1, int arg2, int arg3)
m_vloryneo(C_eemzphbi arg0, C_ogavsvbr<?> arg1, int arg2, int arg3)
getEntitySpawnPos(WorldView world, EntityType<?> entityType, int x, int z)
getEntitySpawnPos(WorldView world, EntityType<?> entityType, int x, int z)
m_47065_(C_1599_ p_47066_, C_513_<?> p_47067_, int p_47068_, int p_47069_)