net.minecraft.world.level

public final class NaturalSpawner

dht
net.minecraft.world.level.NaturalSpawner
net.minecraft.class_1948
net.minecraft.world.SpawnHelper
net.minecraft.world.level.SpawnerCreature

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
c
LOGGER
field_9292
LOGGER
private static final int
d
MIN_SPAWN_DISTANCE
field_30974
MIN_SPAWN_DISTANCE
public static final int
a
SPAWN_DISTANCE_CHUNK
field_30972
field_30972
public static final int
b
SPAWN_DISTANCE_BLOCK
field_30973
field_30973
static final int
e
MAGIC_NUMBER
field_24392
CHUNK_AREA
private static final MobCategory[]
f
SPAWNING_CATEGORIES
field_24393
SPAWNABLE_GROUPS

Constructor summary

ModifierConstructor
private ()

Method summary

Modifier and TypeMethod
public static NaturalSpawner$SpawnState
a(int arg0, Iterable<bvk> arg1, dht$b arg2, dhs 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)
static Biome
a(jh arg0, dzq arg1)
getRoughBiome(BlockPos arg0, ChunkAccess arg1)
method_27822(class_2338 arg0, class_2791 arg1)
getBiomeDirectly(BlockPos pos, Chunk chunk)
public static List<MobCategory>
a(dht$d arg0, boolean arg1, boolean arg2, boolean arg3)
getFilteredSpawningCategories(NaturalSpawner$SpawnState arg0, boolean arg1, boolean arg2, boolean arg3)
method_61729(class_1948$class_5262 arg0, boolean arg1, boolean arg2, boolean arg3)
collectSpawnableGroups(SpawnHelper$Info info, boolean spawnAnimals, boolean spawnMonsters, boolean rare)
public static void
a(ash arg0, eaa arg1, dht$d arg2, List<bwj> arg3)
spawnForChunk(ServerLevel arg0, LevelChunk arg1, NaturalSpawner$SpawnState arg2, List<MobCategory> arg3)
method_27821(class_3218 arg0, class_2818 arg1, class_1948$class_5262 arg2, List<class_1311> arg3)
spawn(ServerWorld world, WorldChunk chunk, SpawnHelper$Info info, List<SpawnGroup> spawnableGroups)
public static void
a(bwj arg0, ash arg1, eaa arg2, dht$c arg3, dht$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)
public static void
a(bwj arg0, ash arg1, jh 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)
public static void
a(bwj arg0, ash arg1, dzq arg2, jh arg3, dht$c arg4, dht$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)
private static boolean
a(ash arg0, dzq arg1, jh$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)
private static boolean
a(ash arg0, bwj arg1, die arg2, dzr arg3, diw$c arg4, jh$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)
private static Mob
a(ash arg0, bvr<?> arg1)
getMobForSpawn(ServerLevel arg0, EntityType<?> arg1)
method_24931(class_3218 arg0, class_1299<?> arg1)
createMob(ServerWorld world, EntityType<?> type)
private static boolean
a(ash arg0, bwi 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)
private static Optional<MobSpawnSettings$SpawnerData>
a(ash arg0, die arg1, dzr arg2, bwj arg3, bam arg4, jh 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)
private static boolean
a(ash arg0, die arg1, dzr arg2, bwj arg3, diw$c arg4, jh 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)
private static WeightedRandomList<MobSpawnSettings$SpawnerData>
a(ash arg0, die arg1, dzr arg2, bwj arg3, jh arg4, jq<dik> 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)
public static boolean
a(jh arg0, ash arg1, bwj arg2, die 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)
private static BlockPos
a(dhi arg0, eaa arg1)
getRandomPosWithin(Level arg0, LevelChunk arg1)
method_8657(class_1937 arg0, class_2818 arg1)
getRandomPosInChunkSection(World world, WorldChunk chunk)
public static boolean
a(dgn arg0, jh arg1, dxv arg2, etx arg3, bvr<?> 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)
public static void
a(dhz arg0, jq<dik> arg1, dgo arg2, bam 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)
private static BlockPos
a(dhl arg0, bvr<?> 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)