net.minecraft.world.level

public final class NaturalSpawner

dcl
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<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)
setupSpawn(int spawningChunkCount, Iterable<Entity> entities, SpawnHelper$ChunkSource chunkSource, SpawnDensityCapper densityCapper)
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)
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)
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)
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)
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)
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)
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)
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_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)
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)
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)
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(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)
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_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)
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(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)
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(dca arg0, duk 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(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)
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)
populateEntities(ServerWorldAccess world, RegistryEntry<Biome> biomeEntry, 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(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)
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_)