net.minecraft.world.level.chunk

public abstract class ChunkGenerator

cxk
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
e
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
structureSetRegistry
f_207955_
protected final BiomeSource
c
biomeSource
field_12761
biomeSource
f_62137_
private final Supplier<List<FeatureSorter$StepFeatureData>>
f
featuresPerStep
field_39412
indexedFeaturesListSupplier
f_223020_
protected final Optional<HolderSet<StructureSet>>
d
structureOverrides
field_37054
structureOverrides
f_207956_
private final Function<Holder<Biome>, BiomeGenerationSettings>
g
generationSettingsGetter
field_39413
generationSettingsGetter
f_223021_
private final Map<Structure, List<StructurePlacement>>
h
placementsForStructure
field_37055
structurePlacements
f_223022_
private final Map<ConcentricRingsStructurePlacement, CompletableFuture<List<ChunkPos>>>
i
ringPositions
field_36405
concentricRingPositions
f_204350_
private boolean
j
hasGeneratedPositions
field_37056
hasComputedStructurePlacements
f_207958_

Constructor summary

ModifierConstructor
public (Registry<StructureSet> structureSetRegistry, Optional<HolderSet<StructureSet>> structureOverrides, BiomeSource biomeSource)
public (Registry<StructureSet> structureSetRegistry, Optional<HolderSet<StructureSet>> structureOverrides, BiomeSource biomeSource, Function<Holder<Biome>, BiomeGenerationSettings> generationSettingsGetter)

Method summary

Modifier and TypeMethod
protected static <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)
createStructureSetRegistryGetter(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<T> instance)
m_208005_(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<T> p_208006_)
public Stream<Holder<StructureSet>>
a()
possibleStructureSets()
method_41039()
streamStructureSets()
m_207969_()
private void
b(dbf arg0)
generatePositions(RandomState arg0)
method_41057(class_7138 arg0)
computeStructurePlacements(NoiseConfig noiseConfig)
m_223227_(C_213138_ arg0)
private CompletableFuture<List<ChunkPos>>
a(hc<dlh> arg0, dbf arg1, dlv arg2)
generateRingPositions(Holder<StructureSet> arg0, RandomState arg1, ConcentricRingsStructurePlacement arg2)
method_28509(class_6880<class_7059> arg0, class_7138 arg1, class_6871 arg2)
generateConcentricRingPositions(RegistryEntry<StructureSet> structureSet, NoiseConfig noiseConfig, ConcentricRingsStructurePlacement concentricRingsStructurePlacement)
m_223148_(C_203228_<C_207023_> p_223150_, C_213138_ p_223151_, C_203218_ arg2)
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 CompletableFuture<ChunkAccess>
a(hm<cht> arg0, Executor arg1, dbf arg2, dbr arg3, cho arg4, cxj arg5)
createBiomes(Registry<Biome> arg0, Executor arg1, RandomState arg2, Blender arg3, StructureManager arg4, ChunkAccess arg5)
method_38275(class_2378<class_1959> arg0, Executor arg1, class_7138 arg2, class_6748 arg3, class_5138 arg4, class_2791 arg5)
populateBiomes(Registry<Biome> biomeRegistry, Executor executor, NoiseConfig noiseConfig, Blender blender, StructureAccessor structureAccessor, Chunk chunk)
m_213908_(C_4705_<C_1629_> p_223159_, Executor p_223160_, C_213138_ p_223161_, C_182955_ p_223162_, C_213086_ p_223163_, C_2116_ arg5)
public abstract void
a(agn arg0, long arg1, dbf arg2, chv arg3, cho arg4, cxj arg5, dan$a arg6)
applyCarvers(WorldGenRegion arg0, long arg1, RandomState arg2, BiomeManager arg3, StructureManager arg4, ChunkAccess arg5, GenerationStep$Carving arg6)
method_12108(class_3233 arg0, long arg1, class_7138 arg2, class_4543 arg3, class_5138 arg4, class_2791 arg5, class_2893$class_2894 arg6)
carve(ChunkRegion chunkRegion, long seed, NoiseConfig noiseConfig, BiomeAccess biomeAccess, StructureAccessor structureAccessor, Chunk chunk, GenerationStep$Carver carverStep)
m_213679_(C_19_ p_223044_, long p_223045_, C_213138_ p_223047_, C_1642_ p_223048_, C_213086_ p_223049_, C_2116_ arg5, C_2187_$C_2188_ arg6)
public com.mojang.datafixers.util.Pair<BlockPos, Holder<Structure>>
a(agg arg0, he<dlb> arg1, gt arg2, int arg3, boolean arg4)
findNearestMapStructure(ServerLevel arg0, HolderSet<Structure> arg1, BlockPos arg2, int arg3, boolean arg4)
method_12103(class_3218 arg0, class_6885<class_3195> arg1, class_2338 arg2, int arg3, boolean arg4)
locateStructure(ServerWorld world, RegistryEntryList<Structure> structures, BlockPos center, int radius, boolean skipReferencedStructures)
m_223037_(C_12_ p_223039_, C_203233_<C_213164_> p_223040_, C_4675_ p_223041_, int p_223042_, boolean arg4)
private com.mojang.datafixers.util.Pair<BlockPos, Holder<Structure>>
a(Set<hc<dlb>> arg0, agg arg1, cho arg2, gt arg3, boolean arg4, dlv arg5)
getNearestGeneratedStructure(Set<Holder<Structure>> arg0, ServerLevel arg1, StructureManager arg2, BlockPos arg3, boolean arg4, ConcentricRingsStructurePlacement arg5)
method_40148(Set<class_6880<class_3195>> arg0, class_3218 arg1, class_5138 arg2, class_2338 arg3, boolean arg4, class_6871 arg5)
locateConcentricRingsStructure(Set<RegistryEntry<Structure>> structures, ServerWorld world, StructureAccessor structureAccessor, BlockPos center, boolean skipReferencedStructures, ConcentricRingsStructurePlacement placement)
m_223181_(Set<C_203228_<C_213164_>> p_223183_, C_12_ p_223184_, C_213086_ p_223185_, C_4675_ p_223186_, boolean p_223187_, C_203218_ arg5)
private static com.mojang.datafixers.util.Pair<BlockPos, Holder<Structure>>
a(Set<hc<dlb>> arg0, cha arg1, cho arg2, int arg3, int arg4, int arg5, boolean arg6, long arg7, dlw arg8)
getNearestGeneratedStructure(Set<Holder<Structure>> arg0, LevelReader arg1, StructureManager arg2, int arg3, int arg4, int arg5, boolean arg6, long arg7, RandomSpreadStructurePlacement arg8)
method_40146(Set<class_6880<class_3195>> arg0, class_4538 arg1, class_5138 arg2, int arg3, int arg4, int arg5, boolean arg6, long arg7, class_6872 arg8)
locateRandomSpreadStructure(Set<RegistryEntry<Structure>> structures, WorldView world, StructureAccessor structureAccessor, int centerChunkX, int centerChunkZ, int radius, boolean skipReferencedStructures, long seed, RandomSpreadStructurePlacement placement)
m_223188_(Set<C_203228_<C_213164_>> p_223189_, C_1599_ p_223190_, C_213086_ p_223191_, int p_223192_, int p_223193_, int p_223194_, boolean p_223195_, long p_223196_, C_203219_ arg8)
private static com.mojang.datafixers.util.Pair<BlockPos, Holder<Structure>>
a(Set<hc<dlb>> arg0, cha arg1, cho arg2, boolean arg3, dly arg4, cge arg5)
getStructureGeneratingAt(Set<Holder<Structure>> arg0, LevelReader arg1, StructureManager arg2, boolean arg3, StructurePlacement arg4, ChunkPos arg5)
method_41522(Set<class_6880<class_3195>> arg0, class_4538 arg1, class_5138 arg2, boolean arg3, class_6874 arg4, class_1923 arg5)
locateStructure(Set<RegistryEntry<Structure>> structures, WorldView world, StructureAccessor structureAccessor, boolean skipReferencedStructures, StructurePlacement placement, ChunkPos pos)
m_223198_(Set<C_203228_<C_213164_>> p_223199_, C_1599_ p_223200_, C_213086_ p_223201_, boolean p_223202_, C_203222_ p_223203_, C_1560_ p_223204_)
private static boolean
a(cho arg0, dlj arg1)
tryAddReference(StructureManager arg0, StructureStart arg1)
method_41521(class_5138 arg0, class_3449 arg1)
checkNotReferenced(StructureAccessor structureAccessor, StructureStart start)
m_223059_(C_213086_ p_223060_, C_2588_ p_223061_)
public void
a(chp arg0, cxj arg1, cho arg2)
applyBiomeDecoration(WorldGenLevel arg0, ChunkAccess arg1, StructureManager arg2)
method_12102(class_5281 arg0, class_2791 arg1, class_5138 arg2)
generateFeatures(StructureWorldAccess world, Chunk chunk, StructureAccessor structureAccessor)
m_213609_(C_1625_ p_223088_, C_2116_ p_223089_, C_213086_ arg2)
public boolean
a(hc<dlh> arg0, dbf arg1, long arg2, int arg3, int arg4, int arg5)
hasStructureChunkInRange(Holder<StructureSet> arg0, RandomState arg1, long arg2, int arg3, int arg4, int arg5)
method_41053(class_6880<class_7059> arg0, class_7138 arg1, long arg2, int arg3, int arg4, int arg5)
shouldStructureGenerateInRange(RegistryEntry<StructureSet> structureSet, NoiseConfig noiseConfig, long seed, int chunkX, int chunkZ, int chunkRange)
m_223141_(C_203228_<C_207023_> p_223143_, C_213138_ p_223144_, long p_223145_, int p_223147_, int arg4, int arg5)
private static BoundingBox
a(cxj arg0)
getWritableArea(ChunkAccess arg0)
method_39462(class_2791 arg0)
getBlockBoxForChunk(Chunk chunk)
m_187717_(C_2116_ p_187718_)
public abstract void
a(agn arg0, cho arg1, dbf arg2, cxj arg3)
buildSurface(WorldGenRegion arg0, StructureManager arg1, RandomState arg2, ChunkAccess arg3)
method_12110(class_3233 arg0, class_5138 arg1, class_7138 arg2, class_2791 arg3)
buildSurface(ChunkRegion region, StructureAccessor structures, NoiseConfig noiseConfig, Chunk chunk)
m_214194_(C_19_ p_223051_, C_213086_ p_223052_, C_213138_ p_223053_, C_2116_ arg3)
public abstract void
a(agn arg0)
spawnOriginalMobs(WorldGenRegion arg0)
method_12107(class_3233 arg0)
populateEntities(ChunkRegion region)
m_6929_(C_19_ arg0)
public int
a(cgz arg0)
getSpawnHeight(LevelHeightAccessor arg0)
method_12100(class_5539 arg0)
getSpawnHeight(HeightLimitView world)
m_142051_(C_141183_ arg0)
public BiomeSource
d()
getBiomeSource()
method_12098()
getBiomeSource()
m_62218_()
public abstract int
e()
getGenDepth()
method_12104()
getWorldHeight()
m_6331_()
public WeightedRandomList<MobSpawnSettings$SpawnerData>
a(hc<cht> arg0, cho arg1, bcf arg2, gt arg3)
getMobsAt(Holder<Biome> arg0, StructureManager 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_223133_(C_203228_<C_1629_> p_223135_, C_213086_ p_223136_, C_528_ p_223137_, C_4675_ arg3)
public void
a(hn arg0, dbf arg1, cho arg2, cxj arg3, dou arg4, long arg5)
createStructures(RegistryAccess arg0, RandomState arg1, StructureManager arg2, ChunkAccess arg3, StructureTemplateManager arg4, long arg5)
method_16129(class_5455 arg0, class_7138 arg1, class_5138 arg2, class_2791 arg3, class_3485 arg4, long arg5)
setStructureStarts(DynamicRegistryManager registryManager, NoiseConfig noiseConfig, StructureAccessor structureAccessor, Chunk chunk, StructureTemplateManager structureTemplateManager, long seed)
m_223164_(C_4706_ p_223166_, C_213138_ p_223167_, C_213086_ p_223168_, C_2116_ p_223169_, C_213305_ p_223170_, long arg5)
private boolean
a(dlh$a arg0, cho arg1, hn arg2, dbf arg3, dou arg4, long arg5, cxj arg6, cge arg7, hq arg8)
tryGenerateStructure(StructureSet$StructureSelectionEntry arg0, StructureManager arg1, RegistryAccess arg2, RandomState arg3, StructureTemplateManager arg4, long arg5, ChunkAccess arg6, ChunkPos arg7, SectionPos arg8)
method_41044(class_7059$class_7060 arg0, class_5138 arg1, class_5455 arg2, class_7138 arg3, class_3485 arg4, long arg5, class_2791 arg6, class_1923 arg7, class_4076 arg8)
trySetStructureStart(StructureSet$WeightedEntry weightedEntry, StructureAccessor structureAccessor, DynamicRegistryManager dynamicRegistryManager, NoiseConfig noiseConfig, StructureTemplateManager structureManager, long seed, Chunk chunk, ChunkPos pos, ChunkSectionPos sectionPos)
m_223104_(C_207023_$C_207024_ p_223106_, C_213086_ p_223107_, C_4706_ p_223108_, C_213138_ p_223109_, C_213305_ p_223110_, long p_223111_, C_2116_ p_223113_, C_1560_ arg7, C_4710_ arg8)
private static int
a(cho arg0, cxj arg1, hq arg2, dlb arg3)
fetchReferences(StructureManager arg0, ChunkAccess arg1, SectionPos arg2, Structure arg3)
method_38264(class_5138 arg0, class_2791 arg1, class_4076 arg2, class_3195 arg3)
getStructureReferences(StructureAccessor structureAccessor, Chunk chunk, ChunkSectionPos sectionPos, Structure structure)
m_223054_(C_213086_ p_223055_, C_2116_ p_223056_, C_4710_ p_223057_, C_213164_ p_223058_)
public void
a(chp arg0, cho arg1, cxj arg2)
createReferences(WorldGenLevel arg0, StructureManager arg1, ChunkAccess arg2)
method_16130(class_5281 arg0, class_5138 arg1, class_2791 arg2)
addStructureReferences(StructureWorldAccess world, StructureAccessor structureAccessor, Chunk chunk)
m_223076_(C_1625_ p_223078_, C_213086_ p_223079_, C_2116_ arg2)
public abstract CompletableFuture<ChunkAccess>
a(Executor arg0, dbr arg1, dbf arg2, cho arg3, cxj arg4)
fillFromNoise(Executor arg0, Blender arg1, RandomState arg2, StructureManager arg3, ChunkAccess arg4)
method_12088(Executor arg0, class_6748 arg1, class_7138 arg2, class_5138 arg3, class_2791 arg4)
populateNoise(Executor executor, Blender blender, NoiseConfig noiseConfig, StructureAccessor structureAccessor, Chunk chunk)
m_213974_(Executor p_223210_, C_182955_ p_223211_, C_213138_ p_223212_, C_213086_ p_223213_, C_2116_ arg4)
public abstract int
f()
getSeaLevel()
method_16398()
getSeaLevel()
m_6337_()
public abstract int
g()
getMinY()
method_33730()
getMinimumY()
m_142062_()
public abstract int
a(int arg0, int arg1, dar$a arg2, cgz arg3, dbf arg4)
getBaseHeight(int arg0, int arg1, Heightmap$Types arg2, LevelHeightAccessor arg3, RandomState arg4)
method_16397(int arg0, int arg1, class_2902$class_2903 arg2, class_5539 arg3, class_7138 arg4)
getHeight(int x, int z, Heightmap$Type heightmap, HeightLimitView world, NoiseConfig noiseConfig)
m_214096_(int p_223033_, int p_223034_, C_2190_$C_2191_ p_223035_, C_141183_ p_223036_, C_213138_ arg4)
public abstract NoiseColumn
a(int arg0, int arg1, cgz arg2, dbf arg3)
getBaseColumn(int arg0, int arg1, LevelHeightAccessor arg2, RandomState arg3)
method_26261(int arg0, int arg1, class_5539 arg2, class_7138 arg3)
getColumnSample(int x, int z, HeightLimitView world, NoiseConfig noiseConfig)
m_214184_(int p_223029_, int p_223030_, C_141183_ p_223031_, C_213138_ arg3)
public int
b(int arg0, int arg1, dar$a arg2, cgz arg3, dbf arg4)
getFirstFreeHeight(int arg0, int arg1, Heightmap$Types arg2, LevelHeightAccessor arg3, RandomState arg4)
method_20402(int arg0, int arg1, class_2902$class_2903 arg2, class_5539 arg3, class_7138 arg4)
getHeightOnGround(int x, int z, Heightmap$Type heightmap, HeightLimitView world, NoiseConfig noiseConfig)
m_223221_(int p_223223_, int p_223224_, C_2190_$C_2191_ p_223225_, C_141183_ p_223226_, C_213138_ arg4)
public int
c(int arg0, int arg1, dar$a arg2, cgz arg3, dbf arg4)
getFirstOccupiedHeight(int arg0, int arg1, Heightmap$Types arg2, LevelHeightAccessor arg3, RandomState arg4)
method_18028(int arg0, int arg1, class_2902$class_2903 arg2, class_5539 arg3, class_7138 arg4)
getHeightInGround(int x, int z, Heightmap$Type heightmap, HeightLimitView world, NoiseConfig noiseConfig)
m_223235_(int p_223237_, int p_223238_, C_2190_$C_2191_ p_223239_, C_141183_ p_223240_, C_213138_ arg4)
public void
a(dbf arg0)
ensureStructuresGenerated(RandomState arg0)
method_41058(class_7138 arg0)
computeStructurePlacementsIfNeeded(NoiseConfig noiseConfig)
m_223100_(C_213138_ arg0)
public List<ChunkPos>
a(dlv arg0, dbf arg1)
getRingPositionsFor(ConcentricRingsStructurePlacement arg0, RandomState arg1)
method_40147(class_6871 arg0, class_7138 arg1)
getConcentricRingsStartChunks(ConcentricRingsStructurePlacement structurePlacement, NoiseConfig noiseConfig)
m_223119_(C_203218_ p_223121_, C_213138_ arg1)
private List<StructurePlacement>
a(hc<dlb> arg0, dbf arg1)
getPlacementsForStructure(Holder<Structure> arg0, RandomState arg1)
method_41055(class_6880<class_3195> arg0, class_7138 arg1)
getStructurePlacement(RegistryEntry<Structure> structureEntry, NoiseConfig noiseConfig)
m_223138_(C_203228_<C_213164_> p_223140_, C_213138_ arg1)
public abstract void
a(List<String> arg0, dbf arg1, gt arg2)
addDebugScreenInfo(List<String> arg0, RandomState arg1, BlockPos arg2)
method_40450(List<String> arg0, class_7138 arg1, class_2338 arg2)
getDebugHudText(List<String> text, NoiseConfig noiseConfig, BlockPos pos)
m_213600_(List<String> p_223176_, C_213138_ p_223177_, C_4675_ arg2)
public BiomeGenerationSettings
a(hc<cht> arg0)
getBiomeGenerationSettings(Holder<Biome> arg0)
method_44216(class_6880<class_1959> arg0)
getGenerationSettings(RegistryEntry<Biome> biomeEntry)
m_223131_(C_203228_<C_1629_> arg0)