Class NoiseBasedChunkGenerator
java.lang.Object
net.minecraft.world.level.chunk.ChunkGenerator
net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator
- All Implemented Interfaces:
BiomeManager.NoiseBiomeSource
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final BlockState
static final com.mojang.serialization.Codec<NoiseBasedChunkGenerator>
protected final BlockState
private static final BlockState[]
private final Aquifer.FluidPicker
private final Registry<NormalNoise.NoiseParameters>
private final NoiseRouter
protected final Climate.Sampler
protected final long
protected final Holder<NoiseGeneratorSettings>
private final SurfaceSystem
Fields inherited from class net.minecraft.world.level.chunk.ChunkGenerator
biomeSource, runtimeBiomeSource, structureOverrides, structureSets
-
Constructor Summary
ModifierConstructorDescriptionNoiseBasedChunkGenerator
(Registry<StructureSet> p_209106_, Registry<NormalNoise.NoiseParameters> p_209107_, BiomeSource p_209108_, long p_209109_, Holder<NoiseGeneratorSettings> p_209110_) private
NoiseBasedChunkGenerator
(Registry<StructureSet> p_209112_, Registry<NormalNoise.NoiseParameters> p_209113_, BiomeSource p_209114_, BiomeSource p_209115_, long p_209116_, Holder<NoiseGeneratorSettings> p_209117_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDebugScreenInfo
(List<String> p_209128_, BlockPos p_209129_) void
applyCarvers
(WorldGenRegion p_188629_, long p_188630_, BiomeManager p_188631_, StructureFeatureManager p_188632_, ChunkAccess p_188633_, GenerationStep.Carving p_188634_) void
buildSurface
(WorldGenRegion p_188636_, StructureFeatureManager p_188637_, ChunkAccess p_188638_) protected com.mojang.serialization.Codec<? extends ChunkGenerator>
codec()
createBiomes
(Registry<Biome> p_197005_, Executor p_197006_, Blender p_197007_, StructureFeatureManager p_197008_, ChunkAccess p_197009_) private BlockState
debugPreliminarySurfaceLevel
(NoiseChunk p_198232_, int p_198233_, int p_198234_, int p_198235_, BlockState p_198236_) private void
doCreateBiomes
(Blender p_204587_, StructureFeatureManager p_204588_, ChunkAccess p_204589_) private ChunkAccess
doFill
(Blender p_188663_, StructureFeatureManager p_188664_, ChunkAccess p_188665_, int p_188666_, int p_188667_) fillFromNoise
(Executor p_188702_, Blender p_188703_, StructureFeatureManager p_188704_, ChunkAccess p_188705_) getBaseColumn
(int p_158401_, int p_158402_, LevelHeightAccessor p_158403_) int
getBaseHeight
(int p_158405_, int p_158406_, Heightmap.Types p_158407_, LevelHeightAccessor p_158408_) int
int
getMinY()
int
protected OptionalInt
iterateNoiseColumn
(int p_158414_, int p_158415_, BlockState[] p_158416_, Predicate<BlockState> p_158417_, int p_158418_, int p_158419_) router()
void
spawnOriginalMobs
(WorldGenRegion p_64379_) boolean
stable
(long p_64376_, ResourceKey<NoiseGeneratorSettings> p_64377_) topMaterial
(CarvingContext p_188669_, Function<BlockPos, Holder<Biome>> p_188670_, ChunkAccess p_188671_, NoiseChunk p_188672_, BlockPos p_188673_, boolean p_188674_) Deprecated.withSeed
(long p_64374_) Methods inherited from class net.minecraft.world.level.chunk.ChunkGenerator
adjustBiome, allConfigurations, applyBiomeDecoration, commonCodec, createReferences, createStructures, ensureStructuresGenerated, findNearestMapFeature, getBiomeSource, getFirstFreeHeight, getFirstOccupiedHeight, getMobsAt, getNoiseBiome, getRingPositionsFor, getSpawnHeight, getTypeNameForDataFixer, hasFeatureChunkInRange, possibleStructureSets
-
Field Details
-
CODEC
-
AIR
-
EMPTY_COLUMN
-
defaultBlock
-
noises
-
seed
protected final long seed -
settings
-
router
-
sampler
-
surfaceSystem
-
globalFluidPicker
-
-
Constructor Details
-
NoiseBasedChunkGenerator
public NoiseBasedChunkGenerator(Registry<StructureSet> p_209106_, Registry<NormalNoise.NoiseParameters> p_209107_, BiomeSource p_209108_, long p_209109_, Holder<NoiseGeneratorSettings> p_209110_) -
NoiseBasedChunkGenerator
private NoiseBasedChunkGenerator(Registry<StructureSet> p_209112_, Registry<NormalNoise.NoiseParameters> p_209113_, BiomeSource p_209114_, BiomeSource p_209115_, long p_209116_, Holder<NoiseGeneratorSettings> p_209117_)
-
-
Method Details
-
createBiomes
public CompletableFuture<ChunkAccess> createBiomes(Registry<Biome> p_197005_, Executor p_197006_, Blender p_197007_, StructureFeatureManager p_197008_, ChunkAccess p_197009_) - Overrides:
createBiomes
in classChunkGenerator
-
doCreateBiomes
private void doCreateBiomes(Blender p_204587_, StructureFeatureManager p_204588_, ChunkAccess p_204589_) -
router
-
climateSampler
- Specified by:
climateSampler
in classChunkGenerator
-
codec
- Specified by:
codec
in classChunkGenerator
-
withSeed
- Specified by:
withSeed
in classChunkGenerator
-
stable
-
getBaseHeight
public int getBaseHeight(int p_158405_, int p_158406_, Heightmap.Types p_158407_, LevelHeightAccessor p_158408_) - Specified by:
getBaseHeight
in classChunkGenerator
-
getBaseColumn
- Specified by:
getBaseColumn
in classChunkGenerator
-
addDebugScreenInfo
- Specified by:
addDebugScreenInfo
in classChunkGenerator
-
iterateNoiseColumn
protected OptionalInt iterateNoiseColumn(int p_158414_, int p_158415_, @Nullable BlockState[] p_158416_, @Nullable Predicate<BlockState> p_158417_, int p_158418_, int p_158419_) -
buildSurface
public void buildSurface(WorldGenRegion p_188636_, StructureFeatureManager p_188637_, ChunkAccess p_188638_) - Specified by:
buildSurface
in classChunkGenerator
-
applyCarvers
public void applyCarvers(WorldGenRegion p_188629_, long p_188630_, BiomeManager p_188631_, StructureFeatureManager p_188632_, ChunkAccess p_188633_, GenerationStep.Carving p_188634_) - Specified by:
applyCarvers
in classChunkGenerator
-
fillFromNoise
public CompletableFuture<ChunkAccess> fillFromNoise(Executor p_188702_, Blender p_188703_, StructureFeatureManager p_188704_, ChunkAccess p_188705_) - Specified by:
fillFromNoise
in classChunkGenerator
-
doFill
private ChunkAccess doFill(Blender p_188663_, StructureFeatureManager p_188664_, ChunkAccess p_188665_, int p_188666_, int p_188667_) -
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
-
topMaterial
@Deprecated public Optional<BlockState> topMaterial(CarvingContext p_188669_, Function<BlockPos, Holder<Biome>> p_188670_, ChunkAccess p_188671_, NoiseChunk p_188672_, BlockPos p_188673_, boolean p_188674_) Deprecated.
-