public abstract class SurfaceChunkGenerator<T extends ChunkGeneratorConfig> extends ChunkGenerator<T>
Modifier and Type | Field and Description |
---|---|
private static BlockState |
AIR |
protected BlockState |
defaultBlock |
protected BlockState |
defaultFluid |
private OctavePerlinNoiseSampler |
field_16574 |
private OctavePerlinNoiseSampler |
field_16575 |
private OctavePerlinNoiseSampler |
field_16581 |
private static float[] |
field_16649 |
private int |
horizontalNoiseResolution |
private int |
noiseSizeX |
private int |
noiseSizeY |
private int |
noiseSizeZ |
protected ChunkRandom |
random |
private NoiseSampler |
surfaceDepthNoise |
private int |
verticalNoiseResolution |
biomeSource, config, seed, world
Constructor and Description |
---|
SurfaceChunkGenerator(IWorld world,
BiomeSource biomeSource,
int verticalNoiseResolution,
int horizontalNoiseResolution,
int worldHeight,
T config,
boolean useSimplexNoise) |
Modifier and Type | Method and Description |
---|---|
protected void |
buildBedrock(Chunk chunk,
Random random) |
void |
buildSurface(ChunkRegion region,
Chunk chunk) |
protected abstract double |
computeNoiseFalloff(double depth,
double scale,
int y) |
protected abstract double[] |
computeNoiseRange(int x,
int z) |
BlockView |
getColumnSample(int x,
int z) |
int |
getHeight(int x,
int z,
Heightmap.Type heightmapType) |
int |
getNoiseSizeY() |
protected double |
method_16409() |
protected double |
method_16410() |
private static double |
method_16571(int int2,
int int3,
int int4) |
private static double |
method_16572(int int2,
int int3,
int int4) |
protected BlockState |
method_26262(double double2,
int int2) |
private int |
method_26263(int int2,
int int3,
BlockState[] blockState,
Predicate<BlockState> predicate) |
void |
populateNoise(IWorld world,
StructureAccessor structureAccessor,
Chunk chunk) |
private double |
sampleNoise(int x,
int y,
int z,
double double2,
double double3,
double double4,
double double5) |
protected abstract void |
sampleNoiseColumn(double[] buffer,
int x,
int z) |
protected void |
sampleNoiseColumn(double[] buffer,
int x,
int z,
double double2,
double double3,
double double4,
double double5,
int int2,
int int3) |
protected double[] |
sampleNoiseColumn(int x,
int z) |
addStructureReferences, carve, generateFeatures, getBiomeSource, getConfig, getDecorationBiome, getEntitySpawnList, getHeightInGround, getHeightOnGround, getMaxY, getSeaLevel, getSeed, getSpawnHeight, getStructureConfig, hasStructure, locateStructure, method_27192, populateBiomes, populateEntities, setStructureStarts, spawnEntities
private static final float[] field_16649
private static final BlockState AIR
private final int verticalNoiseResolution
private final int horizontalNoiseResolution
private final int noiseSizeX
private final int noiseSizeY
private final int noiseSizeZ
protected final ChunkRandom random
private final OctavePerlinNoiseSampler field_16574
private final OctavePerlinNoiseSampler field_16581
private final OctavePerlinNoiseSampler field_16575
private final NoiseSampler surfaceDepthNoise
protected final BlockState defaultBlock
protected final BlockState defaultFluid
public SurfaceChunkGenerator(IWorld world, BiomeSource biomeSource, int verticalNoiseResolution, int horizontalNoiseResolution, int worldHeight, T config, boolean useSimplexNoise)
private double sampleNoise(int x, int y, int z, double double2, double double3, double double4, double double5)
protected double[] sampleNoiseColumn(int x, int z)
protected void sampleNoiseColumn(double[] buffer, int x, int z, double double2, double double3, double double4, double double5, int int2, int int3)
protected abstract double[] computeNoiseRange(int x, int z)
protected abstract double computeNoiseFalloff(double depth, double scale, int y)
protected double method_16409()
protected double method_16410()
public int getHeight(int x, int z, Heightmap.Type heightmapType)
getHeight
in class ChunkGenerator<T extends ChunkGeneratorConfig>
public BlockView getColumnSample(int x, int z)
getColumnSample
in class ChunkGenerator<T extends ChunkGeneratorConfig>
private int method_26263(int int2, int int3, @Nullable BlockState[] blockState, @Nullable Predicate<BlockState> predicate)
protected BlockState method_26262(double double2, int int2)
protected abstract void sampleNoiseColumn(double[] buffer, int x, int z)
public int getNoiseSizeY()
public void buildSurface(ChunkRegion region, Chunk chunk)
buildSurface
in class ChunkGenerator<T extends ChunkGeneratorConfig>
public void populateNoise(IWorld world, StructureAccessor structureAccessor, Chunk chunk)
populateNoise
in class ChunkGenerator<T extends ChunkGeneratorConfig>
private static double method_16572(int int2, int int3, int int4)
private static double method_16571(int int2, int int3, int int4)