public final class SurfaceChunkGenerator extends ChunkGenerator
| Modifier and Type | Field and Description |
|---|---|
private static BlockState |
AIR |
protected BlockState |
defaultBlock |
protected BlockState |
defaultFluid |
private static float[] |
field_16649 |
static com.mojang.serialization.Codec<SurfaceChunkGenerator> |
field_24773 |
protected class_5284 |
field_24774 |
private static float[] |
field_24775 |
private OctavePerlinNoiseSampler |
field_24776 |
private SimplexNoiseSampler |
field_24777 |
private long |
field_24778 |
private int |
field_24779 |
private int |
horizontalNoiseResolution |
private OctavePerlinNoiseSampler |
interpolationNoise |
private OctavePerlinNoiseSampler |
lowerInterpolatedNoise |
private int |
noiseSizeX |
private int |
noiseSizeY |
private int |
noiseSizeZ |
protected ChunkRandom |
random |
private NoiseSampler |
surfaceDepthNoise |
private OctavePerlinNoiseSampler |
upperInterpolatedNoise |
private int |
verticalNoiseResolution |
biomeSource, field_24746, field_24747| Modifier | Constructor and Description |
|---|---|
private |
SurfaceChunkGenerator(BiomeSource biomeSource,
BiomeSource biomeSource2,
long long2,
class_5284 class_5284) |
|
SurfaceChunkGenerator(BiomeSource biomeSource,
long long2,
class_5284 class_5284) |
| Modifier and Type | Method and Description |
|---|---|
private void |
buildBedrock(Chunk chunk,
Random random) |
void |
buildSurface(ChunkRegion region,
Chunk chunk) |
ChunkGenerator |
create(long seed) |
protected BlockState |
getBlockState(double density,
int y) |
BlockView |
getColumnSample(int x,
int z) |
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() |
private static double |
method_16571(int int2,
int int3,
int int4) |
private static double |
method_16572(int int2,
int int3,
int int4) |
protected com.mojang.serialization.Codec<? extends ChunkGenerator> |
method_28506() |
boolean |
method_28548(long long2,
class_5284.class_5307 class_5307) |
private double |
method_28553(int int2,
int int3) |
void |
populateEntities(ChunkRegion region) |
void |
populateNoise(WorldAccess world,
StructureAccessor accessor,
Chunk chunk)
Generates the base shape of the chunk out of the basic block states as decided by this chunk generator's config.
|
private int |
sampleHeightmap(int x,
int z,
BlockState[] states,
Predicate<BlockState> predicate) |
private double |
sampleNoise(int x,
int y,
int z,
double horizontalScale,
double verticalScale,
double horizontalStretch,
double verticalStretch) |
private void |
sampleNoiseColumn(double[] buffer,
int x,
int z) |
private double[] |
sampleNoiseColumn(int x,
int z) |
addStructureReferences, carve, generateFeatures, getBiomeSource, getConfig, getHeightInGround, getHeightOnGround, getSpawnHeight, locateStructure, method_28507, populateBiomes, setStructureStartspublic static final com.mojang.serialization.Codec<SurfaceChunkGenerator> field_24773
private static final float[] field_16649
private static final float[] field_24775
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 lowerInterpolatedNoise
private final OctavePerlinNoiseSampler upperInterpolatedNoise
private final OctavePerlinNoiseSampler interpolationNoise
private final NoiseSampler surfaceDepthNoise
private final OctavePerlinNoiseSampler field_24776
@Nullable private final SimplexNoiseSampler field_24777
protected final BlockState defaultBlock
protected final BlockState defaultFluid
private final long field_24778
protected final class_5284 field_24774
private final int field_24779
public SurfaceChunkGenerator(BiomeSource biomeSource, long long2, class_5284 class_5284)
private SurfaceChunkGenerator(BiomeSource biomeSource, BiomeSource biomeSource2, long long2, class_5284 class_5284)
protected com.mojang.serialization.Codec<? extends ChunkGenerator> method_28506()
method_28506 in class ChunkGenerator@Environment(value=CLIENT) public ChunkGenerator create(long seed)
create in class ChunkGeneratorpublic boolean method_28548(long long2,
class_5284.class_5307 class_5307)
private double sampleNoise(int x,
int y,
int z,
double horizontalScale,
double verticalScale,
double horizontalStretch,
double verticalStretch)
private double[] sampleNoiseColumn(int x,
int z)
private void sampleNoiseColumn(double[] buffer,
int x,
int z)
private double method_28553(int int2,
int int3)
public int getHeight(int x,
int z,
Heightmap.Type heightmapType)
getHeight in class ChunkGeneratorpublic BlockView getColumnSample(int x, int z)
getColumnSample in class ChunkGeneratorprivate int sampleHeightmap(int x,
int z,
@Nullable
BlockState[] states,
@Nullable
Predicate<BlockState> predicate)
protected BlockState getBlockState(double density, int y)
public void buildSurface(ChunkRegion region, Chunk chunk)
buildSurface in class ChunkGeneratorpublic void populateNoise(WorldAccess world, StructureAccessor accessor, Chunk chunk)
populateNoise in class ChunkGeneratorprivate static double method_16572(int int2,
int int3,
int int4)
private static double method_16571(int int2,
int int3,
int int4)
public int getMaxY()
getMaxY in class ChunkGeneratorpublic int getSeaLevel()
getSeaLevel in class ChunkGeneratorpublic List<Biome.SpawnEntry> getEntitySpawnList(Biome biome, StructureAccessor accessor, SpawnGroup group, BlockPos pos)
getEntitySpawnList in class ChunkGeneratorpublic void populateEntities(ChunkRegion region)
populateEntities in class ChunkGenerator