Package net.minecraft.world.gen
Class NoiseChunkGenerator
java.lang.Object
net.minecraft.world.gen.ChunkGenerator
net.minecraft.world.gen.NoiseChunkGenerator
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final BlockState
private static final float[]
private static final float[]
private final int
private final int
private final int
private final int
private final int
static final com.mojang.serialization.Codec<NoiseChunkGenerator>
protected final BlockState
protected final BlockState
private final OctavesNoiseGenerator
private final int
private final SimplexNoiseGenerator
private final OctavesNoiseGenerator
private final OctavesNoiseGenerator
private final OctavesNoiseGenerator
protected final SharedSeedRandom
private final long
protected final Supplier<DimensionSettings>
private final INoiseGenerator
Fields inherited from class net.minecraft.world.gen.ChunkGenerator
biomeSource, runtimeBiomeSource
-
Constructor Summary
ModifierConstructorDescriptionNoiseChunkGenerator
(BiomeProvider p_i241975_1_, long p_i241975_2_, Supplier<DimensionSettings> p_i241975_4_) private
NoiseChunkGenerator
(BiomeProvider p_i241976_1_, BiomeProvider p_i241976_2_, long p_i241976_3_, Supplier<DimensionSettings> p_i241976_5_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildSurfaceAndBedrock
(WorldGenRegion p_225551_1_, IChunk p_225551_2_) protected com.mojang.serialization.Codec<? extends ChunkGenerator>
codec()
private static double
computeContribution
(int p_222554_0_, int p_222554_1_, int p_222554_2_) void
fillFromNoise
(IWorld p_230352_1_, StructureManager p_230352_2_, IChunk p_230352_3_) private void
fillNoiseColumn
(double[] p_222548_1_, int p_222548_2_, int p_222548_3_) protected BlockState
generateBaseState
(double p_236086_1_, int p_236086_3_) getBaseColumn
(int p_230348_1_, int p_230348_2_) int
getBaseHeight
(int p_222529_1_, int p_222529_2_, Heightmap.Type p_222529_3_) private static double
getContribution
(int p_222556_0_, int p_222556_1_, int p_222556_2_) int
getMobsAt
(Biome p_230353_1_, StructureManager p_230353_2_, EntityClassification p_230353_3_, BlockPos p_230353_4_) private double
getRandomDensity
(int p_236095_1_, int p_236095_2_) int
private int
iterateNoiseColumn
(int p_236087_1_, int p_236087_2_, BlockState[] p_236087_3_, Predicate<BlockState> p_236087_4_) private double[]
makeAndFillNoiseColumn
(int p_222547_1_, int p_222547_2_) private double
sampleAndClampNoise
(int p_222552_1_, int p_222552_2_, int p_222552_3_, double p_222552_4_, double p_222552_6_, double p_222552_8_, double p_222552_10_) private void
setBedrock
(IChunk p_222555_1_, Random p_222555_2_) void
spawnOriginalMobs
(WorldGenRegion p_230354_1_) boolean
stable
(long p_236088_1_, RegistryKey<DimensionSettings> p_236088_3_) withSeed
(long p_230349_1_) Methods inherited from class net.minecraft.world.gen.ChunkGenerator
applyBiomeDecoration, applyCarvers, createBiomes, createReferences, createStructures, findNearestMapFeature, getBiomeSource, getFirstFreeHeight, getFirstOccupiedHeight, getSettings, getSpawnHeight, hasStronghold
-
Field Details
-
CODEC
-
BEARD_KERNEL
private static final float[] BEARD_KERNEL -
BIOME_WEIGHTS
private static final float[] BIOME_WEIGHTS -
AIR
-
chunkHeight
private final int chunkHeight -
chunkWidth
private final int chunkWidth -
chunkCountX
private final int chunkCountX -
chunkCountY
private final int chunkCountY -
chunkCountZ
private final int chunkCountZ -
random
-
minLimitPerlinNoise
-
maxLimitPerlinNoise
-
mainPerlinNoise
-
surfaceNoise
-
depthNoise
-
islandNoise
-
defaultBlock
-
defaultFluid
-
seed
private final long seed -
settings
-
height
private final int height
-
-
Constructor Details
-
NoiseChunkGenerator
public NoiseChunkGenerator(BiomeProvider p_i241975_1_, long p_i241975_2_, Supplier<DimensionSettings> p_i241975_4_) -
NoiseChunkGenerator
private NoiseChunkGenerator(BiomeProvider p_i241976_1_, BiomeProvider p_i241976_2_, long p_i241976_3_, Supplier<DimensionSettings> p_i241976_5_)
-
-
Method Details
-
codec
- Specified by:
codec
in classChunkGenerator
-
withSeed
- Specified by:
withSeed
in classChunkGenerator
-
stable
-
sampleAndClampNoise
private double sampleAndClampNoise(int p_222552_1_, int p_222552_2_, int p_222552_3_, double p_222552_4_, double p_222552_6_, double p_222552_8_, double p_222552_10_) -
makeAndFillNoiseColumn
private double[] makeAndFillNoiseColumn(int p_222547_1_, int p_222547_2_) -
fillNoiseColumn
private void fillNoiseColumn(double[] p_222548_1_, int p_222548_2_, int p_222548_3_) -
getRandomDensity
private double getRandomDensity(int p_236095_1_, int p_236095_2_) -
getBaseHeight
- Specified by:
getBaseHeight
in classChunkGenerator
-
getBaseColumn
- Specified by:
getBaseColumn
in classChunkGenerator
-
iterateNoiseColumn
private int iterateNoiseColumn(int p_236087_1_, int p_236087_2_, @Nullable BlockState[] p_236087_3_, @Nullable Predicate<BlockState> p_236087_4_) -
generateBaseState
-
buildSurfaceAndBedrock
- Specified by:
buildSurfaceAndBedrock
in classChunkGenerator
-
setBedrock
-
fillFromNoise
- Specified by:
fillFromNoise
in classChunkGenerator
-
getContribution
private static double getContribution(int p_222556_0_, int p_222556_1_, int p_222556_2_) -
computeContribution
private static double computeContribution(int p_222554_0_, int p_222554_1_, int p_222554_2_) -
getGenDepth
public int getGenDepth()- Overrides:
getGenDepth
in classChunkGenerator
-
getSeaLevel
public int getSeaLevel()- Overrides:
getSeaLevel
in classChunkGenerator
-
getMobsAt
public List<MobSpawnInfo.Spawners> getMobsAt(Biome p_230353_1_, StructureManager p_230353_2_, EntityClassification p_230353_3_, BlockPos p_230353_4_) - Overrides:
getMobsAt
in classChunkGenerator
-
spawnOriginalMobs
- Overrides:
spawnOriginalMobs
in classChunkGenerator
-