net.minecraft.world.level

public final class NaturalSpawner

cgl
net.minecraft.world.level.NaturalSpawner
net.minecraft.class_1948
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
LOGGER
f_46977_
private static final int
d
MIN_SPAWN_DISTANCE
field_30974
MIN_SPAWN_DISTANCE
f_151589_
public static final int
a
SPAWN_DISTANCE_CHUNK
field_30972
field_30972
f_151587_
public static final int
b
SPAWN_DISTANCE_BLOCK
field_30973
field_30973
f_151588_
static final int
e
MAGIC_NUMBER
field_24392
CHUNK_AREA
f_46978_
private static final MobCategory[]
f
SPAWNING_CATEGORIES
field_24393
SPAWNABLE_GROUPS
f_46979_

Constructor summary

ModifierConstructor
private ()

Method summary

Modifier and TypeMethod
public static NaturalSpawner$SpawnState
a(int arg0, Iterable<baq> arg1, cgl$b arg2, cgk 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)
setupSpawn(int spawningChunkCount, Iterable<Entity> entities, SpawnHelper$ChunkSource chunkSource, SpawnDensityCapper arg3)
m_186524_(int p_186525_, Iterable<C_507_> p_186526_, C_1611_ p_186527_, C_182852_ p_186528_)
static Biome
a(gt arg0, cwm arg1)
getRoughBiome(BlockPos arg0, ChunkAccess arg1)
method_27822(class_2338 arg0, class_2791 arg1)
getBiomeDirectly(BlockPos pos, Chunk chunk)
m_47095_(C_4675_ p_47096_, C_2116_ p_47097_)
public static void
a(afo arg0, cww arg1, cgl$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)
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_1613_ p_47032_, boolean p_47033_, boolean p_47034_, boolean p_47035_)
public static void
a(bbi arg0, afo arg1, cww arg2, cgl$c arg3, cgl$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)
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_1612_ p_47049_, C_1610_ p_47050_)
public static void
a(bbi arg0, afo arg1, gt arg2)
spawnCategoryForPosition(MobCategory arg0, ServerLevel arg1, BlockPos arg2)
method_35240(class_1311 arg0, class_3218 arg1, class_2338 arg2)
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(bbi arg0, afo arg1, cwm arg2, gt arg3, cgl$c arg4, cgl$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)
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_1612_ p_47043_, C_1610_ p_47044_)
private static boolean
a(afo arg0, cwm arg1, gt$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)
isAcceptableSpawnPosition(ServerWorld world, Chunk chunk, BlockPos$Mutable pos, double squaredDistance)
m_47024_(C_12_ p_47025_, C_2116_ p_47026_, C_4681_ p_47027_, double p_47028_)
private static boolean
a(afo arg0, bbi arg1, cgr arg2, cwn arg3, chi$c arg4, gt$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)
canSpawn(ServerWorld world, SpawnGroup group, StructureAccessor structureAccessor, 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_1664_ p_220426_, C_4681_ p_220427_, double p_220428_)
private static Mob
a(afo arg0, bau<?> arg1)
getMobForSpawn(ServerLevel arg0, EntityType<?> arg1)
method_24931(class_3218 arg0, class_1299<?> arg1)
createMob(ServerWorld world, EntityType<?> type)
m_46988_(C_12_ p_46989_, C_513_<?> p_46990_)
private static boolean
a(afo arg0, bbh arg1, double arg2)
isValidPositionForMob(ServerLevel arg0, Mob arg1, double arg2)
method_24932(class_3218 arg0, class_1308 arg1, double arg2)
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(afo arg0, cgr arg1, cwn arg2, bbi arg3, alu arg4, gt 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)
pickRandomSpawnEntry(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, Random 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(afo arg0, cgr arg1, cwn arg2, bbi arg3, chi$c arg4, gt 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)
containsSpawnEntry(ServerWorld world, StructureAccessor structureAccessor, 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_1664_ p_220441_, C_4675_ p_220442_)
private static WeightedRandomList<MobSpawnSettings$SpawnerData>
a(afo arg0, cgr arg1, cwn arg2, bbi arg3, gt arg4, hc<cgw> 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)
getSpawnEntries(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, BlockPos pos, RegistryEntry<Biome> biomeEntry)
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(gt arg0, afo arg1, bbi arg2, cgr arg3)
isInNetherFortressBounds(BlockPos arg0, ServerLevel arg1, MobCategory arg2, StructureManager arg3)
method_38091(class_2338 arg0, class_3218 arg1, class_1311 arg2, class_5138 arg3)
shouldUseNetherFortressSpawns(BlockPos pos, ServerWorld world, SpawnGroup spawnGroup, StructureAccessor structureAccessor)
m_220455_(C_4675_ p_220456_, C_12_ p_220457_, C_528_ p_220458_, C_213086_ p_220459_)
private static BlockPos
a(cga arg0, cww arg1)
getRandomPosWithin(Level arg0, LevelChunk arg1)
method_8657(class_1937 arg0, class_2818 arg1)
getRandomPosInChunkSection(World world, WorldChunk chunk)
m_47062_(C_1596_ p_47063_, C_2137_ p_47064_)
public static boolean
a(cfg arg0, gt arg1, cur arg2, doy arg3, bau<?> 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)
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(bby$c arg0, cgd arg1, gt arg2, bau<?> 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)
canSpawn(SpawnRestriction$Location location, WorldView world, BlockPos pos, EntityType<?> entityType)
m_47051_(C_546_ p_47052_, C_1599_ p_47053_, C_4675_ p_47054_, C_513_<?> p_47055_)
public static void
a(cgp arg0, hc<cgw> arg1, cfh arg2, alu 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)
populateEntities(ServerWorldAccess world, RegistryEntry<Biome> arg1, ChunkPos chunkPos, Random 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(cgd arg0, bau<?> 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)
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_)