net.minecraft.world.level

public final class NaturalSpawner

cbg
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
f_powvgtkn
f_151587_
public static final int
b
SPAWN_DISTANCE_BLOCK
field_30973
f_lqtjinwh
field_30973
f_lqtjinwh
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<axk> arg1, cbg$b arg2, cbf 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 arg3)
setupSpawn(int spawningChunkCount, Iterable<Entity> entities, SpawnHelper$ChunkSource chunkSource, SpawnDensityCapper arg3)
m_186524_(int p_186525_, Iterable<C_507_> p_186526_, C_1608_$C_1611_ p_186527_, C_182852_ p_186528_)
static Biome
a(gj arg0, cqq 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(adw arg0, cra arg1, cbg$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(ayb arg0, adw arg1, cra arg2, cbg$c arg3, cbg$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(ayb arg0, adw arg1, gj 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(ayb arg0, adw arg1, cqq arg2, gj arg3, cbg$c arg4, cbg$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(adw arg0, cqq arg1, gj$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(adw arg0, ayb arg1, cbm arg2, cqr arg3, ccb$c arg4, gj$a arg5, double arg6)
isValidSpawnPostitionForType(ServerLevel arg0, MobCategory arg1, StructureFeatureManager 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_iijvezpz 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, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnSettings$SpawnEntry spawnEntry, BlockPos$Mutable pos, double squaredDistance)
m_46995_(C_12_ p_46996_, C_528_ p_46997_, C_1621_ p_46998_, C_2118_ p_46999_, C_1660_$C_1664_ p_47000_, C_4675_$C_4681_ p_47001_, double p_47002_)
private static Mob
a(adw arg0, axo<?> 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(adw arg0, aya 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(adw arg0, cbm arg1, cqr arg2, ayb arg3, Random arg4, gj arg5)
getRandomSpawnMobAt(ServerLevel arg0, StructureFeatureManager arg1, ChunkGenerator arg2, MobCategory arg3, Random arg4, BlockPos arg5)
method_8664(class_3218 arg0, class_5138 arg1, class_2794 arg2, class_1311 arg3, Random arg4, class_2338 arg5)
m_qxfjfphb(C_bdwnwhiu arg0, C_iijvezpz arg1, C_kgfalbim arg2, C_ormqdxci arg3, Random arg4, C_hynzadkk arg5)
pickRandomSpawnEntry(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, Random random, BlockPos pos)
pickRandomSpawnEntry(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, Random random, BlockPos pos)
m_151598_(C_12_ p_151599_, C_1621_ p_151600_, C_2118_ p_151601_, C_528_ p_151602_, Random p_151603_, C_4675_ p_151604_)
private static boolean
a(adw arg0, cbm arg1, cqr arg2, ayb arg3, ccb$c arg4, gj arg5)
canSpawnMobAt(ServerLevel arg0, StructureFeatureManager 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_iijvezpz 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, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, SpawnSettings$SpawnEntry spawnEntry, BlockPos pos)
m_47003_(C_12_ p_47004_, C_1621_ p_47005_, C_2118_ p_47006_, C_528_ p_47007_, C_1660_$C_1664_ p_47008_, C_4675_ p_47009_)
private static WeightedRandomList<MobSpawnSettings$SpawnerData>
a(adw arg0, cbm arg1, cqr arg2, ayb arg3, gj arg4, gs<cbr> arg5)
mobsAt(ServerLevel arg0, StructureFeatureManager 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_iijvezpz 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, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, BlockPos pos, Holder<Biome> arg5)
m_204168_(C_12_ p_204169_, C_1621_ p_204170_, C_2118_ p_204171_, C_528_ p_204172_, C_4675_ p_204173_, C_203228_<C_1629_> p_204174_)
public static boolean
a(gj arg0, adw arg1, ayb arg2, cbm arg3)
isInNetherFortressBounds(BlockPos arg0, ServerLevel arg1, MobCategory arg2, StructureFeatureManager 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_iijvezpz arg3)
shouldUseNetherFortressSpawns(BlockPos pos, ServerWorld world, SpawnGroup spawnGroup, StructureAccessor structureAccessor)
m_qyxehwpd(BlockPos arg0, ServerWorld arg1, SpawnGroup arg2, StructureAccessor arg3)
m_186529_(C_4675_ p_186530_, C_12_ p_186531_, C_528_ p_186532_, C_1621_ p_186533_)
private static BlockPos
a(cav arg0, cra 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(cab arg0, gj arg1, cov arg2, dix arg3, axo<?> 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 boolean
a(ayr$c arg0, cay arg1, gj arg2, axo<?> arg3)
isSpawnPositionOk(SpawnPlacements$Type arg0, LevelReader arg1, BlockPos arg2, EntityType<?> arg3)
method_8660(class_1317$class_1319 arg0, class_4538 arg1, class_2338 arg2, class_1299<?> arg3)
m_omwhodhg(C_bpscphvz$C_ofgnfshc arg0, C_eemzphbi arg1, C_hynzadkk arg2, C_ogavsvbr<?> arg3)
canSpawn(SpawnRestriction$Location location, WorldView world, BlockPos pos, EntityType<?> entityType)
canSpawn(SpawnRestriction$Location location, WorldView world, BlockPos pos, EntityType<?> entityType)
m_47051_(C_543_$C_546_ p_47052_, C_1599_ p_47053_, C_4675_ p_47054_, C_513_<?> p_47055_)
public static void
a(cbk arg0, gs<cbr> arg1, cac arg2, Random arg3)
spawnMobsForChunkGeneration(ServerLevelAccessor arg0, Holder<Biome> arg1, ChunkPos arg2, Random arg3)
method_8661(class_5425 arg0, class_6880<class_1959> arg1, class_1923 arg2, Random arg3)
m_fndueeko(C_jmnzlycd arg0, C_cjzoxshv<C_orlkpefs> arg1, C_ynrszrtu arg2, Random arg3)
populateEntities(ServerWorldAccess world, RegistryEntry<Biome> arg1, ChunkPos chunkPos, Random random)
populateEntities(ServerWorldAccess world, Holder<Biome> arg1, ChunkPos chunkPos, Random random)
m_204175_(C_1618_ p_204176_, C_203228_<C_1629_> p_204177_, C_1560_ p_204178_, Random p_204179_)
private static BlockPos
a(cay arg0, axo<?> 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_)