net.minecraft.world.level.chunk

public abstract class ChunkGenerator

implements BiomeManager$NoiseBiomeSource

cqr
net.minecraft.world.level.chunk.ChunkGenerator
net.minecraft.class_2794
net.minecraft.world.gen.chunk.ChunkGenerator
net.minecraft.src.C_2118_
net.minecraft.world.level.chunk.ChunkGenerator

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
f
LOGGER
field_37254
LOGGER
f_211627_
public static final com.mojang.serialization.Codec<ChunkGenerator>
a
CODEC
field_24746
CODEC
f_62136_
protected final Registry<StructureSet>
b
structureSets
field_37053
field_37053
f_207955_
protected final BiomeSource
c
biomeSource
field_12761
populationSource
f_62137_
protected final BiomeSource
d
runtimeBiomeSource
field_24747
biomeSource
f_62138_
protected final Optional<HolderSet<StructureSet>>
e
structureOverrides
field_37054
field_37054
f_207956_
private final Map<ConfiguredStructureFeature<?, ?>, List<StructurePlacement>>
g
placementsForFeature
field_37055
field_37055
f_207957_
private final Map<ConcentricRingsStructurePlacement, CompletableFuture<List<ChunkPos>>>
h
ringPositions
field_36405
field_36405
f_204350_
private boolean
i
hasGeneratedPositions
field_37056
field_37056
f_207958_
private final long
j
ringPlacementSeed
field_37261
field_37261
f_212255_

Constructor summary

ModifierConstructor
public (Registry<StructureSet> p_207961_, Optional<HolderSet<StructureSet>> p_207962_, BiomeSource arg2)
public (Registry<StructureSet> p_207965_, Optional<HolderSet<StructureSet>> p_207966_, BiomeSource p_207967_, BiomeSource p_207968_, long arg4)

Method summary

Modifier and TypeMethod
protected static final <T extends ChunkGenerator> com.mojang.datafixers.Products$P1<com.mojang.serialization.codecs.RecordCodecBuilder$Mu<T>, Registry<StructureSet>>
a(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<T> arg0)
commonCodec(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<T> arg0)
method_41042(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<T> arg0)
method_41042(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<T> arg0)
m_208005_(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<T> p_208006_)
public Stream<Holder<StructureSet>>
a()
possibleStructureSets()
method_41039()
method_41039()
m_207969_()
private void
j()
generatePositions()
method_41057()
method_41057()
m_208097_()
private CompletableFuture<List<ChunkPos>>
a(gs<dfp> arg0, dgd arg1)
generateRingPositions(Holder<StructureSet> arg0, ConcentricRingsStructurePlacement arg1)
method_28509(class_6880<class_7059> arg0, class_6871 arg1)
generateStrongholdPositions(RegistryEntry<StructureSet> strongholdSet, ConcentricRingsStructurePlacement placement)
m_211667_(C_203228_<C_207023_> p_211669_, C_203218_ arg1)
protected abstract com.mojang.serialization.Codec<? extends ChunkGenerator>
b()
codec()
method_28506()
getCodec()
m_6909_()
public Optional<ResourceKey<com.mojang.serialization.Codec<? extends ChunkGenerator>>>
c()
getTypeNameForDataFixer()
method_39301()
getCodecKey()
m_187743_()
public abstract ChunkGenerator
a(long arg0)
withSeed(long arg0)
method_27997(long arg0)
withSeed(long seed)
m_6819_(long arg0)
public CompletableFuture<ChunkAccess>
a(hb<cbr> arg0, Executor arg1, cuy arg2, cbm arg3, cqq arg4)
createBiomes(Registry<Biome> arg0, Executor arg1, Blender arg2, StructureFeatureManager arg3, ChunkAccess arg4)
method_38275(class_2378<class_1959> arg0, Executor arg1, class_6748 arg2, class_5138 arg3, class_2791 arg4)
populateBiomes(Registry<Biome> biomeRegistry, Executor arg1, Blender blender, StructureAccessor structureAccessor, Chunk chunk)
m_196423_(C_4705_<C_1629_> p_196744_, Executor p_196745_, C_182955_ p_196746_, C_1621_ p_196747_, C_2116_ arg4)
public abstract Climate$Sampler
d()
climateSampler()
method_38276()
getMultiNoiseSampler()
m_183403_()
public Holder<Biome>
getNoiseBiome(int arg0, int arg1, int arg2)
getNoiseBiome(int arg0, int arg1, int arg2)
method_16359(int arg0, int arg1, int arg2)
getBiomeForNoiseGen(int arg0, int arg1, int arg2)
m_203495_(int p_204417_, int p_204418_, int arg2)
public abstract void
a(aed arg0, long arg1, cbt arg2, cbm arg3, cqq arg4, cts$a arg5)
applyCarvers(WorldGenRegion arg0, long arg1, BiomeManager arg2, StructureFeatureManager arg3, ChunkAccess arg4, GenerationStep$Carving arg5)
method_12108(class_3233 arg0, long arg1, class_4543 arg2, class_5138 arg3, class_2791 arg4, class_2893$class_2894 arg5)
carve(ChunkRegion chunkRegion, long seed, BiomeAccess biomeAccess, StructureAccessor structureAccessor, Chunk chunk, GenerationStep$Carver generationStep)
m_183516_(C_19_ p_187692_, long p_187693_, C_1642_ p_187695_, C_1621_ p_187696_, C_2116_ arg4, C_2187_$C_2188_ arg5)
public com.mojang.datafixers.util.Pair<BlockPos, Holder<ConfiguredStructureFeature<?, ?>>>
a(adw arg0, gt<cwr<?, ?>> arg1, gj arg2, int arg3, boolean arg4)
findNearestMapFeature(ServerLevel arg0, HolderSet<ConfiguredStructureFeature<?, ?>> arg1, BlockPos arg2, int arg3, boolean arg4)
method_12103(class_3218 arg0, class_6885<class_5312<?, ?>> arg1, class_2338 arg2, int arg3, boolean arg4)
locateStructure(ServerWorld arg0, RegistryEntryList<ConfiguredStructureFeature<?, ?>> arg1, BlockPos center, int radius, boolean skipExistingChunks)
m_207970_(C_12_ p_207972_, C_203233_<C_2228_<?, ?>> p_207973_, C_4675_ p_207974_, int p_207975_, boolean arg4)
private BlockPos
a(gj arg0, dgd arg1)
getNearestGeneratedStructure(BlockPos arg0, ConcentricRingsStructurePlacement arg1)
method_40148(class_2338 arg0, class_6871 arg1)
method_40148(BlockPos arg0, ConcentricRingsStructurePlacement arg1)
m_204382_(C_4675_ p_204384_, C_203218_ arg1)
private static com.mojang.datafixers.util.Pair<BlockPos, Holder<ConfiguredStructureFeature<?, ?>>>
a(Set<gs<cwr<?, ?>>> arg0, cay arg1, cbm arg2, int arg3, int arg4, int arg5, boolean arg6, long arg7, dge arg8)
getNearestGeneratedStructure(Set<Holder<ConfiguredStructureFeature<?, ?>>> arg0, LevelReader arg1, StructureFeatureManager arg2, int arg3, int arg4, int arg5, boolean arg6, long arg7, RandomSpreadStructurePlacement arg8)
method_40146(Set<class_6880<class_5312<?, ?>>> arg0, class_4538 arg1, class_5138 arg2, int arg3, int arg4, int arg5, boolean arg6, long arg7, class_6872 arg8)
method_40146(Set<RegistryEntry<ConfiguredStructureFeature<?, ?>>> arg0, WorldView arg1, StructureAccessor arg2, int arg3, int arg4, int arg5, boolean arg6, long arg7, RandomSpreadStructurePlacement arg8)
m_208059_(Set<C_203228_<C_2228_<?, ?>>> p_208060_, C_1599_ p_208061_, C_1621_ p_208062_, int p_208063_, int p_208064_, int p_208065_, boolean p_208066_, long p_208067_, C_203219_ arg8)
public void
a(cbn arg0, cqq arg1, cbm arg2)
applyBiomeDecoration(WorldGenLevel arg0, ChunkAccess arg1, StructureFeatureManager arg2)
method_12102(class_5281 arg0, class_2791 arg1, class_5138 arg2)
generateFeatures(StructureWorldAccess world, Chunk chunk, StructureAccessor structureAccessor)
m_183372_(C_1625_ p_187713_, C_2116_ p_187714_, C_1621_ arg2)
public boolean
a(ys<dfp> arg0, long arg1, int arg2, int arg3, int arg4)
hasFeatureChunkInRange(ResourceKey<StructureSet> arg0, long arg1, int arg2, int arg3, int arg4)
method_41053(class_5321<class_7059> arg0, long arg1, int arg2, int arg3, int arg4)
method_41053(RegistryKey<StructureSet> arg0, long arg1, int arg2, int arg3, int arg4)
m_212265_(C_5264_<C_207023_> p_212267_, long p_212268_, int p_212270_, int arg3, int arg4)
private static BoundingBox
a(cqq arg0)
getWritableArea(ChunkAccess arg0)
method_39462(class_2791 arg0)
getBlockBoxForChunk(Chunk chunk)
m_187717_(C_2116_ p_187718_)
public abstract void
a(aed arg0, cbm arg1, cqq arg2)
buildSurface(WorldGenRegion arg0, StructureFeatureManager arg1, ChunkAccess arg2)
method_12110(class_3233 arg0, class_5138 arg1, class_2791 arg2)
buildSurface(ChunkRegion region, StructureAccessor structures, Chunk chunk)
m_183621_(C_19_ p_187698_, C_1621_ p_187699_, C_2116_ arg2)
public abstract void
a(aed arg0)
spawnOriginalMobs(WorldGenRegion arg0)
method_12107(class_3233 arg0)
populateEntities(ChunkRegion region)
m_6929_(C_19_ arg0)
public int
a(cax arg0)
getSpawnHeight(LevelHeightAccessor arg0)
method_12100(class_5539 arg0)
getSpawnHeight(HeightLimitView world)
m_142051_(C_141183_ arg0)
public BiomeSource
e()
getBiomeSource()
method_12098()
getBiomeSource()
m_62218_()
public abstract int
f()
getGenDepth()
method_12104()
getWorldHeight()
m_6331_()
public WeightedRandomList<MobSpawnSettings$SpawnerData>
a(gs<cbr> arg0, cbm arg1, ayb arg2, gj arg3)
getMobsAt(Holder<Biome> arg0, StructureFeatureManager arg1, MobCategory arg2, BlockPos arg3)
method_12113(class_6880<class_1959> arg0, class_5138 arg1, class_1311 arg2, class_2338 arg3)
getEntitySpawnList(RegistryEntry<Biome> biome, StructureAccessor accessor, SpawnGroup group, BlockPos pos)
m_203315_(C_203228_<C_1629_> p_204387_, C_1621_ p_204388_, C_528_ p_204389_, C_4675_ arg3)
public static Stream<ConfiguredStructureFeature<?, ?>>
a(hb<cwr<?, ?>> arg0, czd<?> arg1)
allConfigurations(Registry<ConfiguredStructureFeature<?, ?>> arg0, StructureFeature<?> arg1)
method_41049(class_2378<class_5312<?, ?>> arg0, class_3195<?> arg1)
method_41049(Registry<ConfiguredStructureFeature<?, ?>> arg0, StructureFeature<?> arg1)
m_208044_(C_4705_<C_2228_<?, ?>> p_208045_, C_2304_<?> p_208046_)
public void
a(hc arg0, cbm arg1, cqq arg2, dhr arg3, long arg4)
createStructures(RegistryAccess arg0, StructureFeatureManager arg1, ChunkAccess arg2, StructureManager arg3, long arg4)
method_16129(class_5455 arg0, class_5138 arg1, class_2791 arg2, class_3485 arg3, long arg4)
setStructureStarts(DynamicRegistryManager registryManager, StructureAccessor world, Chunk chunk, StructureManager structureManager, long worldSeed)
m_62199_(C_4706_ p_62201_, C_1621_ p_62202_, C_2116_ p_62203_, C_2627_ p_62204_, long arg4)
private boolean
a(dfp$a arg0, cbm arg1, hc arg2, dhr arg3, long arg4, cqq arg5, cac arg6, hf arg7)
tryGenerateStructure(StructureSet$StructureSelectionEntry arg0, StructureFeatureManager arg1, RegistryAccess arg2, StructureManager arg3, long arg4, ChunkAccess arg5, ChunkPos arg6, SectionPos arg7)
method_41044(class_7059$class_7060 arg0, class_5138 arg1, class_5455 arg2, class_3485 arg3, long arg4, class_2791 arg5, class_1923 arg6, class_4076 arg7)
method_41044(StructureSet$WeightedEntry arg0, StructureAccessor arg1, DynamicRegistryManager arg2, StructureManager arg3, long arg4, Chunk arg5, ChunkPos arg6, ChunkSectionPos arg7)
m_208016_(C_207023_$C_207024_ p_208018_, C_1621_ p_208019_, C_4706_ p_208020_, C_2627_ p_208021_, long p_208022_, C_2116_ p_208024_, C_1560_ arg6, C_4710_ arg7)
private static int
a(cbm arg0, cqq arg1, hf arg2, cwr<?, ?> arg3)
fetchReferences(StructureFeatureManager arg0, ChunkAccess arg1, SectionPos arg2, ConfiguredStructureFeature<?, ?> arg3)
method_38264(class_5138 arg0, class_2791 arg1, class_4076 arg2, class_5312<?, ?> arg3)
getStructureReferences(StructureAccessor structureAccessor, Chunk chunk, ChunkSectionPos sectionPos, ConfiguredStructureFeature<?, ?> arg3)
m_207976_(C_1621_ p_207977_, C_2116_ p_207978_, C_4710_ p_207979_, C_2228_<?, ?> p_207980_)
protected Holder<Biome>
a(gs<cbr> arg0)
adjustBiome(Holder<Biome> arg0)
method_40149(class_6880<class_1959> arg0)
filterBiome(RegistryEntry<Biome> biome)
m_203427_(C_203228_<C_1629_> arg0)
public void
a(cbn arg0, cbm arg1, cqq arg2)
createReferences(WorldGenLevel arg0, StructureFeatureManager arg1, ChunkAccess arg2)
method_16130(class_5281 arg0, class_5138 arg1, class_2791 arg2)
addStructureReferences(StructureWorldAccess world, StructureAccessor structureAccessor, Chunk chunk)
m_62177_(C_1625_ p_62179_, C_1621_ p_62180_, C_2116_ arg2)
public abstract CompletableFuture<ChunkAccess>
a(Executor arg0, cuy arg1, cbm arg2, cqq arg3)
fillFromNoise(Executor arg0, Blender arg1, StructureFeatureManager arg2, ChunkAccess arg3)
method_12088(Executor arg0, class_6748 arg1, class_5138 arg2, class_2791 arg3)
populateNoise(Executor executor, Blender blender, StructureAccessor structureAccessor, Chunk chunk)
m_183489_(Executor p_187749_, C_182955_ p_187750_, C_1621_ p_187751_, C_2116_ arg3)
public abstract int
g()
getSeaLevel()
method_16398()
getSeaLevel()
m_6337_()
public abstract int
h()
getMinY()
method_33730()
getMinimumY()
m_142062_()
public abstract int
a(int arg0, int arg1, ctw$a arg2, cax arg3)
getBaseHeight(int arg0, int arg1, Heightmap$Types arg2, LevelHeightAccessor arg3)
method_16397(int arg0, int arg1, class_2902$class_2903 arg2, class_5539 arg3)
getHeight(int x, int z, Heightmap$Type heightmap, HeightLimitView world)
m_142647_(int p_156154_, int p_156155_, C_2190_$C_2191_ p_156156_, C_141183_ arg3)
public abstract NoiseColumn
a(int arg0, int arg1, cax arg2)
getBaseColumn(int arg0, int arg1, LevelHeightAccessor arg2)
method_26261(int arg0, int arg1, class_5539 arg2)
getColumnSample(int x, int z, HeightLimitView world)
m_141914_(int p_156151_, int p_156152_, C_141183_ arg2)
public int
b(int arg0, int arg1, ctw$a arg2, cax arg3)
getFirstFreeHeight(int arg0, int arg1, Heightmap$Types arg2, LevelHeightAccessor arg3)
method_20402(int arg0, int arg1, class_2902$class_2903 arg2, class_5539 arg3)
getHeightOnGround(int x, int z, Heightmap$Type heightmap, HeightLimitView world)
m_156174_(int p_156176_, int p_156177_, C_2190_$C_2191_ p_156178_, C_141183_ arg3)
public int
c(int arg0, int arg1, ctw$a arg2, cax arg3)
getFirstOccupiedHeight(int arg0, int arg1, Heightmap$Types arg2, LevelHeightAccessor arg3)
method_18028(int arg0, int arg1, class_2902$class_2903 arg2, class_5539 arg3)
getHeightInGround(int x, int z, Heightmap$Type heightmap, HeightLimitView world)
m_156179_(int p_156181_, int p_156182_, C_2190_$C_2191_ p_156183_, C_141183_ arg3)
public void
i()
ensureStructuresGenerated()
method_41058()
method_41058()
m_211700_()
public List<ChunkPos>
a(dgd arg0)
getRingPositionsFor(ConcentricRingsStructurePlacement arg0)
method_40147(class_6871 arg0)
getConcentricRingsStartChunks(ConcentricRingsStructurePlacement structurePlacement)
m_204380_(C_203218_ arg0)
private List<StructurePlacement>
b(gs<cwr<?, ?>> arg0)
getPlacementsForFeature(Holder<ConfiguredStructureFeature<?, ?>> arg0)
method_41055(class_6880<class_5312<?, ?>> arg0)
method_41055(RegistryEntry<ConfiguredStructureFeature<?, ?>> arg0)
m_208090_(C_203228_<C_2228_<?, ?>> arg0)
public abstract void
a(List<String> arg0, gj arg1)
addDebugScreenInfo(List<String> arg0, BlockPos arg1)
method_40450(List<String> arg0, class_2338 arg1)
getDebugHudText(List<String> text, BlockPos pos)
m_207076_(List<String> p_208055_, C_4675_ arg1)