net.minecraft.world.level

public final class NaturalSpawner

dgu
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<bum> arg1, dgu$b arg2, dgt 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(ji arg0, dyt arg1)
getRoughBiome(BlockPos arg0, ChunkAccess arg1)
method_27822(class_2338 arg0, class_2791 arg1)
getBiomeDirectly(BlockPos pos, Chunk chunk)
public static List<MobCategory>
a(dgu$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(ard arg0, dzd arg1, dgu$d arg2, List<bvl> 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(bvl arg0, ard arg1, dzd arg2, dgu$c arg3, dgu$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(bvl arg0, ard arg1, ji 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(bvl arg0, ard arg1, dyt arg2, ji arg3, dgu$c arg4, dgu$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(ard arg0, dyt arg1, ji$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(ard arg0, bvl arg1, dhf arg2, dyu arg3, dhx$c arg4, ji$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(ard arg0, but<?> arg1)
getMobForSpawn(ServerLevel arg0, EntityType<?> arg1)
method_24931(class_3218 arg0, class_1299<?> arg1)
createMob(ServerWorld world, EntityType<?> type)
private static boolean
a(ard arg0, bvk 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(ard arg0, dhf arg1, dyu arg2, bvl arg3, azh arg4, ji 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(ard arg0, dhf arg1, dyu arg2, bvl arg3, dhx$c arg4, ji 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(ard arg0, dhf arg1, dyu arg2, bvl arg3, ji arg4, jr<dhl> 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(ji arg0, ard arg1, bvl arg2, dhf 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(dgj arg0, dzd arg1)
getRandomPosWithin(Level arg0, LevelChunk arg1)
method_8657(class_1937 arg0, class_2818 arg1)
getRandomPosInChunkSection(World world, WorldChunk chunk)
public static boolean
a(dfo arg0, ji arg1, dwy arg2, eta arg3, but<?> 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(dha arg0, jr<dhl> arg1, dfp 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)
private static BlockPos
a(dgm arg0, but<?> 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)