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 BlockState
AIR
private static float[]
BEARD_KERNEL
private static float[]
BIOME_WEIGHTS
private int
chunkCountX
private int
chunkCountY
private int
chunkCountZ
private int
chunkHeight
private int
chunkWidth
static com.mojang.serialization.Codec<NoiseChunkGenerator>
CODEC
protected BlockState
defaultBlock
protected BlockState
defaultFluid
private OctavesNoiseGenerator
depthNoise
private int
height
private SimplexNoiseGenerator
islandNoise
private OctavesNoiseGenerator
mainPerlinNoise
private OctavesNoiseGenerator
maxLimitPerlinNoise
private OctavesNoiseGenerator
minLimitPerlinNoise
protected SharedSeedRandom
random
private long
seed
protected java.util.function.Supplier<DimensionSettings>
settings
private INoiseGenerator
surfaceNoise
-
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_)
private
NoiseChunkGenerator(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 void
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_)
IBlockReader
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
getGenDepth()
java.util.List<MobSpawnInfo.Spawners>
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
getSeaLevel()
private int
iterateNoiseColumn(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 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_, java.util.Random p_222555_2_)
void
spawnOriginalMobs(WorldGenRegion p_230354_1_)
boolean
stable(long p_236088_1_, RegistryKey<DimensionSettings> p_236088_3_)
ChunkGenerator
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 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:
codec
in classChunkGenerator
-
withSeed
public ChunkGenerator withSeed(long p_230349_1_)
- Specified by:
withSeed
in 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:
getBaseHeight
in classChunkGenerator
-
getBaseColumn
public IBlockReader getBaseColumn(int p_230348_1_, int p_230348_2_)
- Specified by:
getBaseColumn
in 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:
buildSurfaceAndBedrock
in 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:
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 java.util.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
public void spawnOriginalMobs(WorldGenRegion p_230354_1_)
- Overrides:
spawnOriginalMobs
in classChunkGenerator
-
-