public class CavesChunkGenerator extends SurfaceChunkGenerator<CavesChunkGeneratorConfig>
| Modifier and Type | Field and Description |
|---|---|
private CavesChunkGeneratorConfig |
generatorConfig |
private double[] |
noiseFalloff |
defaultBlock, defaultFluid, randombiomeSource| Constructor and Description |
|---|
CavesChunkGenerator(BiomeSource biomeSource,
long seed,
CavesChunkGeneratorConfig config) |
| Modifier and Type | Method and Description |
|---|---|
private double[] |
buildNoiseFalloff() |
protected double |
computeNoiseFalloff(double depth,
double scale,
int y) |
protected double[] |
computeNoiseRange(int x,
int z) |
ChunkGenerator |
create(long seed) |
List<Biome.SpawnEntry> |
getEntitySpawnList(Biome biome,
StructureAccessor accessor,
SpawnGroup group,
BlockPos pos) |
int |
getHeight(int x,
int z,
Heightmap.Type heightmapType) |
int |
getMaxY() |
int |
getSeaLevel() |
protected void |
sampleNoiseColumn(double[] buffer,
int x,
int z) |
bottomInterpolationStart, buildBedrock, buildSurface, getBlockState, getColumnSample, getNoiseSizeY, populateNoise, sampleNoiseColumn, sampleNoiseColumn, topInterpolationStartaddStructureReferences, carve, generateFeatures, getBiomeSource, getConfig, getDecorationBiome, getHeightInGround, getHeightOnGround, getSpawnHeight, getStructureConfig, hasStructure, hasStructure, locateStructure, populateBiomes, populateEntities, setStructureStarts, spawnEntitiesprivate final double[] noiseFalloff
private final CavesChunkGeneratorConfig generatorConfig
public CavesChunkGenerator(BiomeSource biomeSource, long seed, CavesChunkGeneratorConfig config)
@Environment(value=CLIENT) public ChunkGenerator create(long seed)
create in class ChunkGeneratorprotected void sampleNoiseColumn(double[] buffer,
int x,
int z)
sampleNoiseColumn in class SurfaceChunkGenerator<CavesChunkGeneratorConfig>protected double[] computeNoiseRange(int x,
int z)
computeNoiseRange in class SurfaceChunkGenerator<CavesChunkGeneratorConfig>protected double computeNoiseFalloff(double depth,
double scale,
int y)
computeNoiseFalloff in class SurfaceChunkGenerator<CavesChunkGeneratorConfig>private double[] buildNoiseFalloff()
public List<Biome.SpawnEntry> getEntitySpawnList(Biome biome, StructureAccessor accessor, SpawnGroup group, BlockPos pos)
getEntitySpawnList in class ChunkGeneratorpublic int getMaxY()
getMaxY in class ChunkGeneratorpublic int getSeaLevel()
getSeaLevel in class ChunkGeneratorpublic int getHeight(int x,
int z,
Heightmap.Type heightmapType)
getHeight in class SurfaceChunkGenerator<CavesChunkGeneratorConfig>