Package net.minecraft.world.gen
Class NoiseChunkGenerator
- java.lang.Object
-
- net.minecraft.world.gen.ChunkGenerator
-
- net.minecraft.world.gen.NoiseChunkGenerator
-
public final class NoiseChunkGenerator extends ChunkGenerator
-
-
Field Summary
Fields Modifier and Type Field Description private static BlockStateAIRprivate static float[]BEARD_KERNELprivate static float[]BIOME_WEIGHTSprivate intchunkCountXprivate intchunkCountYprivate intchunkCountZprivate intchunkHeightprivate intchunkWidthstatic com.mojang.serialization.Codec<NoiseChunkGenerator>CODECprotected BlockStatedefaultBlockprotected BlockStatedefaultFluidprivate OctavesNoiseGeneratordepthNoiseprivate intheightprivate SimplexNoiseGeneratorislandNoiseprivate OctavesNoiseGeneratormainPerlinNoiseprivate OctavesNoiseGeneratormaxLimitPerlinNoiseprivate OctavesNoiseGeneratorminLimitPerlinNoiseprotected SharedSeedRandomrandomprivate longseedprotected java.util.function.Supplier<DimensionSettings>settingsprivate INoiseGeneratorsurfaceNoise-
Fields inherited from class net.minecraft.world.gen.ChunkGenerator
biomeSource, runtimeBiomeSource
-
-
Constructor Summary
Constructors Modifier Constructor Description NoiseChunkGenerator(BiomeProvider p_i241975_1_, long p_i241975_2_, java.util.function.Supplier<DimensionSettings> p_i241975_4_)privateNoiseChunkGenerator(BiomeProvider p_i241976_1_, BiomeProvider p_i241976_2_, long p_i241976_3_, java.util.function.Supplier<DimensionSettings> p_i241976_5_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildSurfaceAndBedrock(WorldGenRegion p_225551_1_, IChunk p_225551_2_)protected com.mojang.serialization.Codec<? extends ChunkGenerator>codec()private static doublecomputeContribution(int p_222554_0_, int p_222554_1_, int p_222554_2_)voidfillFromNoise(IWorld p_230352_1_, StructureManager p_230352_2_, IChunk p_230352_3_)private voidfillNoiseColumn(double[] p_222548_1_, int p_222548_2_, int p_222548_3_)protected BlockStategenerateBaseState(double p_236086_1_, int p_236086_3_)IBlockReadergetBaseColumn(int p_230348_1_, int p_230348_2_)intgetBaseHeight(int p_222529_1_, int p_222529_2_, Heightmap.Type p_222529_3_)private static doublegetContribution(int p_222556_0_, int p_222556_1_, int p_222556_2_)intgetGenDepth()java.util.List<MobSpawnInfo.Spawners>getMobsAt(Biome p_230353_1_, StructureManager p_230353_2_, EntityClassification p_230353_3_, BlockPos p_230353_4_)private doublegetRandomDensity(int p_236095_1_, int p_236095_2_)intgetSeaLevel()private intiterateNoiseColumn(int p_236087_1_, int p_236087_2_, BlockState[] p_236087_3_, java.util.function.Predicate<BlockState> p_236087_4_)private double[]makeAndFillNoiseColumn(int p_222547_1_, int p_222547_2_)private doublesampleAndClampNoise(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 voidsetBedrock(IChunk p_222555_1_, java.util.Random p_222555_2_)voidspawnOriginalMobs(WorldGenRegion p_230354_1_)booleanstable(long p_236088_1_, RegistryKey<DimensionSettings> p_236088_3_)ChunkGeneratorwithSeed(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 Detail
-
CODEC
public static final com.mojang.serialization.Codec<NoiseChunkGenerator> CODEC
-
BEARD_KERNEL
private static final float[] BEARD_KERNEL
-
BIOME_WEIGHTS
private static final float[] BIOME_WEIGHTS
-
AIR
private static final BlockState 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
protected final SharedSeedRandom random
-
minLimitPerlinNoise
private final OctavesNoiseGenerator minLimitPerlinNoise
-
maxLimitPerlinNoise
private final OctavesNoiseGenerator maxLimitPerlinNoise
-
mainPerlinNoise
private final OctavesNoiseGenerator mainPerlinNoise
-
surfaceNoise
private final INoiseGenerator surfaceNoise
-
depthNoise
private final OctavesNoiseGenerator depthNoise
-
islandNoise
@Nullable private final SimplexNoiseGenerator islandNoise
-
defaultBlock
protected final BlockState defaultBlock
-
defaultFluid
protected final BlockState defaultFluid
-
seed
private final long seed
-
settings
protected final java.util.function.Supplier<DimensionSettings> settings
-
height
private final int height
-
-
Constructor Detail
-
NoiseChunkGenerator
public NoiseChunkGenerator(BiomeProvider p_i241975_1_, long p_i241975_2_, java.util.function.Supplier<DimensionSettings> p_i241975_4_)
-
NoiseChunkGenerator
private NoiseChunkGenerator(BiomeProvider p_i241976_1_, BiomeProvider p_i241976_2_, long p_i241976_3_, java.util.function.Supplier<DimensionSettings> p_i241976_5_)
-
-
Method Detail
-
codec
protected com.mojang.serialization.Codec<? extends ChunkGenerator> codec()
- Specified by:
codecin classChunkGenerator
-
withSeed
public ChunkGenerator withSeed(long p_230349_1_)
- Specified by:
withSeedin classChunkGenerator
-
stable
public boolean stable(long p_236088_1_, RegistryKey<DimensionSettings> p_236088_3_)
-
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
public int getBaseHeight(int p_222529_1_, int p_222529_2_, Heightmap.Type p_222529_3_)- Specified by:
getBaseHeightin classChunkGenerator
-
getBaseColumn
public IBlockReader getBaseColumn(int p_230348_1_, int p_230348_2_)
- Specified by:
getBaseColumnin classChunkGenerator
-
iterateNoiseColumn
private int iterateNoiseColumn(int p_236087_1_, int p_236087_2_, @Nullable BlockState[] p_236087_3_, @Nullable java.util.function.Predicate<BlockState> p_236087_4_)
-
generateBaseState
protected BlockState generateBaseState(double p_236086_1_, int p_236086_3_)
-
buildSurfaceAndBedrock
public void buildSurfaceAndBedrock(WorldGenRegion p_225551_1_, IChunk p_225551_2_)
- Specified by:
buildSurfaceAndBedrockin classChunkGenerator
-
setBedrock
private void setBedrock(IChunk p_222555_1_, java.util.Random p_222555_2_)
-
fillFromNoise
public void fillFromNoise(IWorld p_230352_1_, StructureManager p_230352_2_, IChunk p_230352_3_)
- Specified by:
fillFromNoisein 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:
getGenDepthin classChunkGenerator
-
getSeaLevel
public int getSeaLevel()
- Overrides:
getSeaLevelin classChunkGenerator
-
getMobsAt
public java.util.List<MobSpawnInfo.Spawners> getMobsAt(Biome p_230353_1_, StructureManager p_230353_2_, EntityClassification p_230353_3_, BlockPos p_230353_4_)
- Overrides:
getMobsAtin classChunkGenerator
-
spawnOriginalMobs
public void spawnOriginalMobs(WorldGenRegion p_230354_1_)
- Overrides:
spawnOriginalMobsin classChunkGenerator
-
-