Class NoiseBasedChunkGenerator
java.lang.Object
net.minecraft.world.level.chunk.ChunkGenerator
net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final BlockState
static final com.mojang.serialization.Codec<NoiseBasedChunkGenerator>
protected final BlockState
private final Aquifer.FluidPicker
private final Registry<NormalNoise.NoiseParameters>
protected final Holder<NoiseGeneratorSettings>
Fields inherited from class net.minecraft.world.level.chunk.ChunkGenerator
biomeSource, structureOverrides, structureSets
-
Constructor Summary
ConstructorDescriptionNoiseBasedChunkGenerator
(Registry<StructureSet> p_224206_, Registry<NormalNoise.NoiseParameters> p_224207_, BiomeSource p_224208_, Holder<NoiseGeneratorSettings> p_224209_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDebugScreenInfo
(List<String> p_224304_, RandomState p_224305_, BlockPos p_224306_) void
applyCarvers
(WorldGenRegion p_224224_, long p_224225_, RandomState p_224226_, BiomeManager p_224227_, StructureManager p_224228_, ChunkAccess p_224229_, GenerationStep.Carving p_224230_) void
buildSurface
(WorldGenRegion p_224232_, StructureManager p_224233_, RandomState p_224234_, ChunkAccess p_224235_) void
buildSurface
(ChunkAccess p_224262_, WorldGenerationContext p_224263_, RandomState p_224264_, StructureManager p_224265_, BiomeManager p_224266_, Registry<Biome> p_224267_, Blender p_224268_) protected com.mojang.serialization.Codec<? extends ChunkGenerator>
codec()
createBiomes
(Registry<Biome> p_224297_, Executor p_224298_, RandomState p_224299_, Blender p_224300_, StructureManager p_224301_, ChunkAccess p_224302_) private NoiseChunk
createNoiseChunk
(ChunkAccess p_224257_, StructureManager p_224258_, Blender p_224259_, RandomState p_224260_) private BlockState
debugPreliminarySurfaceLevel
(NoiseChunk p_198232_, int p_198233_, int p_198234_, int p_198235_, BlockState p_198236_) private void
doCreateBiomes
(Blender p_224292_, RandomState p_224293_, StructureManager p_224294_, ChunkAccess p_224295_) private ChunkAccess
doFill
(Blender p_224285_, StructureManager p_224286_, RandomState p_224287_, ChunkAccess p_224288_, int p_224289_, int p_224290_) fillFromNoise
(Executor p_224312_, Blender p_224313_, RandomState p_224314_, StructureManager p_224315_, ChunkAccess p_224316_) getBaseColumn
(int p_224211_, int p_224212_, LevelHeightAccessor p_224213_, RandomState p_224214_) int
getBaseHeight
(int p_224216_, int p_224217_, Heightmap.Types p_224218_, LevelHeightAccessor p_224219_, RandomState p_224220_) int
int
getMinY()
int
protected OptionalInt
iterateNoiseColumn
(LevelHeightAccessor p_224240_, RandomState p_224241_, int p_224242_, int p_224243_, org.apache.commons.lang3.mutable.MutableObject<NoiseColumn> p_224244_, Predicate<BlockState> p_224245_) void
spawnOriginalMobs
(WorldGenRegion p_64379_) boolean
stable
(ResourceKey<NoiseGeneratorSettings> p_224222_) Methods inherited from class net.minecraft.world.level.chunk.ChunkGenerator
applyBiomeDecoration, commonCodec, createReferences, createStructures, ensureStructuresGenerated, findNearestMapStructure, getBiomeGenerationSettings, getBiomeSource, getFirstFreeHeight, getFirstOccupiedHeight, getMobsAt, getRingPositionsFor, getSpawnHeight, getTypeNameForDataFixer, hasStructureChunkInRange, possibleStructureSets
-
Field Details
-
CODEC
-
AIR
-
defaultBlock
-
noises
-
settings
-
globalFluidPicker
-
-
Constructor Details
-
NoiseBasedChunkGenerator
public NoiseBasedChunkGenerator(Registry<StructureSet> p_224206_, Registry<NormalNoise.NoiseParameters> p_224207_, BiomeSource p_224208_, Holder<NoiseGeneratorSettings> p_224209_)
-
-
Method Details
-
createBiomes
public CompletableFuture<ChunkAccess> createBiomes(Registry<Biome> p_224297_, Executor p_224298_, RandomState p_224299_, Blender p_224300_, StructureManager p_224301_, ChunkAccess p_224302_) - Overrides:
createBiomes
in classChunkGenerator
-
doCreateBiomes
private void doCreateBiomes(Blender p_224292_, RandomState p_224293_, StructureManager p_224294_, ChunkAccess p_224295_) -
createNoiseChunk
private NoiseChunk createNoiseChunk(ChunkAccess p_224257_, StructureManager p_224258_, Blender p_224259_, RandomState p_224260_) -
codec
- Specified by:
codec
in classChunkGenerator
-
generatorSettings
-
stable
-
getBaseHeight
public int getBaseHeight(int p_224216_, int p_224217_, Heightmap.Types p_224218_, LevelHeightAccessor p_224219_, RandomState p_224220_) - Specified by:
getBaseHeight
in classChunkGenerator
-
getBaseColumn
public NoiseColumn getBaseColumn(int p_224211_, int p_224212_, LevelHeightAccessor p_224213_, RandomState p_224214_) - Specified by:
getBaseColumn
in classChunkGenerator
-
addDebugScreenInfo
- Specified by:
addDebugScreenInfo
in classChunkGenerator
-
iterateNoiseColumn
protected OptionalInt iterateNoiseColumn(LevelHeightAccessor p_224240_, RandomState p_224241_, int p_224242_, int p_224243_, @Nullable org.apache.commons.lang3.mutable.MutableObject<NoiseColumn> p_224244_, @Nullable Predicate<BlockState> p_224245_) -
buildSurface
public void buildSurface(WorldGenRegion p_224232_, StructureManager p_224233_, RandomState p_224234_, ChunkAccess p_224235_) - Specified by:
buildSurface
in classChunkGenerator
-
buildSurface
public void buildSurface(ChunkAccess p_224262_, WorldGenerationContext p_224263_, RandomState p_224264_, StructureManager p_224265_, BiomeManager p_224266_, Registry<Biome> p_224267_, Blender p_224268_) -
applyCarvers
public void applyCarvers(WorldGenRegion p_224224_, long p_224225_, RandomState p_224226_, BiomeManager p_224227_, StructureManager p_224228_, ChunkAccess p_224229_, GenerationStep.Carving p_224230_) - Specified by:
applyCarvers
in classChunkGenerator
-
fillFromNoise
public CompletableFuture<ChunkAccess> fillFromNoise(Executor p_224312_, Blender p_224313_, RandomState p_224314_, StructureManager p_224315_, ChunkAccess p_224316_) - Specified by:
fillFromNoise
in classChunkGenerator
-
doFill
private ChunkAccess doFill(Blender p_224285_, StructureManager p_224286_, RandomState p_224287_, ChunkAccess p_224288_, int p_224289_, int p_224290_) -
debugPreliminarySurfaceLevel
private BlockState debugPreliminarySurfaceLevel(NoiseChunk p_198232_, int p_198233_, int p_198234_, int p_198235_, BlockState p_198236_) -
getGenDepth
public int getGenDepth()- Specified by:
getGenDepth
in classChunkGenerator
-
getSeaLevel
public int getSeaLevel()- Specified by:
getSeaLevel
in classChunkGenerator
-
getMinY
public int getMinY()- Specified by:
getMinY
in classChunkGenerator
-
spawnOriginalMobs
- Specified by:
spawnOriginalMobs
in classChunkGenerator
-