Class NoiseBasedChunkGenerator
java.lang.Object
net.minecraft.world.level.chunk.ChunkGenerator
net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static BlockState
protected NormalNoise
protected BaseStoneSource
protected int
protected int
protected int
protected int
protected int
static com.mojang.serialization.Codec<NoiseBasedChunkGenerator>
protected BlockState
protected BlockState
private static BlockState[]
protected int
protected NormalNoise
protected NoodleCavifier
protected OreVeinifier
protected NoiseSampler
protected long
protected Supplier<NoiseGeneratorSettings>
protected SurfaceNoise
protected NormalNoise
Fields inherited from class net.minecraft.world.level.chunk.ChunkGenerator
biomeSource, runtimeBiomeSource
-
Constructor Summary
ModifierConstructorDescriptionNoiseBasedChunkGenerator(BiomeSource p_64337_, long p_64338_, Supplier<NoiseGeneratorSettings> p_64339_)
private
NoiseBasedChunkGenerator(BiomeSource p_64341_, BiomeSource p_64342_, long p_64343_, Supplier<NoiseGeneratorSettings> p_64344_)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
buildSurfaceAndBedrock(WorldGenRegion p_64381_, ChunkAccess p_64382_)
protected com.mojang.serialization.Codec<? extends ChunkGenerator>
codec()
protected Aquifer
createAquifer(ChunkAccess p_158438_)
protected DoubleFunction<BaseStoneSource>
createBaseStoneSource(int p_158478_, ChunkPos p_158479_, Consumer<NoiseInterpolator> p_158480_)
protected DoubleFunction<NoiseModifier>
createCaveNoiseModifier(int p_158421_, ChunkPos p_158422_, Consumer<NoiseInterpolator> p_158423_)
protected ChunkAccess
doFill(StructureFeatureManager p_158428_, ChunkAccess p_158429_, int p_158430_, int p_158431_)
fillFromNoise(Executor p_158463_, StructureFeatureManager p_158464_, ChunkAccess p_158465_)
protected void
fillNoiseColumn(double[] p_158467_, int p_158468_, int p_158469_, int p_158470_, int p_158471_)
protected Aquifer
getAquifer(int p_158397_, int p_158398_, ChunkPos p_158399_)
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()
getMobsAt(Biome p_158433_, StructureFeatureManager p_158434_, MobCategory p_158435_, BlockPos p_158436_)
int
private boolean
protected OptionalInt
iterateNoiseColumn(int p_158414_, int p_158415_, BlockState[] p_158416_, Predicate<BlockState> p_158417_, int p_158418_, int p_158419_)
private double[]
makeAndFillNoiseColumn(int p_158392_, int p_158393_, int p_158394_, int p_158395_)
protected void
setBedrock(ChunkAccess p_64400_, Random p_64401_)
void
spawnOriginalMobs(WorldGenRegion p_64379_)
boolean
stable(long p_64376_, ResourceKey<NoiseGeneratorSettings> p_64377_)
protected BlockState
updateNoiseAndGenerateBaseState(Beardifier p_158440_, Aquifer p_158441_, BaseStoneSource p_158442_, NoiseModifier p_158443_, int p_158444_, int p_158445_, int p_158446_, double p_158447_)
withSeed(long p_64374_)
Methods inherited from class net.minecraft.world.level.chunk.ChunkGenerator
applyBiomeDecoration, applyCarvers, createBiomes, createReferences, createStructures, findNearestMapFeature, getBiomeSource, getFirstFreeHeight, getFirstOccupiedHeight, getSettings, getSpawnHeight, hasStronghold
-
Field Details
-
CODEC
-
AIR
-
EMPTY_COLUMN
-
cellHeight
protected final int cellHeight -
cellWidth
protected final int cellWidth -
cellCountX
protected final int cellCountX -
cellCountY
protected final int cellCountY -
cellCountZ
protected final int cellCountZ -
surfaceNoise
-
barrierNoise
-
waterLevelNoise
-
lavaNoise
-
defaultBlock
-
defaultFluid
-
seed
protected final long seed -
settings
-
height
protected final int height -
sampler
-
baseStoneSource
-
oreVeinifier
-
noodleCavifier
-
-
Constructor Details
-
NoiseBasedChunkGenerator
public NoiseBasedChunkGenerator(BiomeSource p_64337_, long p_64338_, Supplier<NoiseGeneratorSettings> p_64339_) -
NoiseBasedChunkGenerator
private NoiseBasedChunkGenerator(BiomeSource p_64341_, BiomeSource p_64342_, long p_64343_, Supplier<NoiseGeneratorSettings> p_64344_)
-
-
Method Details
-
isAquifersEnabled
private boolean isAquifersEnabled() -
codec
- Specified by:
codec
in classChunkGenerator
-
withSeed
- Specified by:
withSeed
in classChunkGenerator
-
stable
-
makeAndFillNoiseColumn
private double[] makeAndFillNoiseColumn(int p_158392_, int p_158393_, int p_158394_, int p_158395_) -
fillNoiseColumn
protected void fillNoiseColumn(double[] p_158467_, int p_158468_, int p_158469_, int p_158470_, int p_158471_) -
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
-
getBaseStoneSource
- Overrides:
getBaseStoneSource
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_) -
getAquifer
-
updateNoiseAndGenerateBaseState
protected BlockState updateNoiseAndGenerateBaseState(Beardifier p_158440_, Aquifer p_158441_, BaseStoneSource p_158442_, NoiseModifier p_158443_, int p_158444_, int p_158445_, int p_158446_, double p_158447_) -
buildSurfaceAndBedrock
- Specified by:
buildSurfaceAndBedrock
in classChunkGenerator
-
setBedrock
-
fillFromNoise
public CompletableFuture<ChunkAccess> fillFromNoise(Executor p_158463_, StructureFeatureManager p_158464_, ChunkAccess p_158465_)- Specified by:
fillFromNoise
in classChunkGenerator
-
doFill
protected ChunkAccess doFill(StructureFeatureManager p_158428_, ChunkAccess p_158429_, int p_158430_, int p_158431_) -
createCaveNoiseModifier
protected DoubleFunction<NoiseModifier> createCaveNoiseModifier(int p_158421_, ChunkPos p_158422_, Consumer<NoiseInterpolator> p_158423_) -
createBaseStoneSource
protected DoubleFunction<BaseStoneSource> createBaseStoneSource(int p_158478_, ChunkPos p_158479_, Consumer<NoiseInterpolator> p_158480_) -
createAquifer
- Overrides:
createAquifer
in classChunkGenerator
-
getGenDepth
public int getGenDepth()- Overrides:
getGenDepth
in classChunkGenerator
-
getSeaLevel
public int getSeaLevel()- Overrides:
getSeaLevel
in classChunkGenerator
-
getMinY
public int getMinY()- Overrides:
getMinY
in classChunkGenerator
-
getMobsAt
public WeightedRandomList<MobSpawnSettings.SpawnerData> getMobsAt(Biome p_158433_, StructureFeatureManager p_158434_, MobCategory p_158435_, BlockPos p_158436_)- Overrides:
getMobsAt
in classChunkGenerator
-
spawnOriginalMobs
- Overrides:
spawnOriginalMobs
in classChunkGenerator
-