public final class SurfaceChunkGenerator extends ChunkGenerator
| Modifier and Type | Field and Description |
|---|---|
private static BlockState |
AIR |
static com.mojang.serialization.Codec<SurfaceChunkGenerator> |
CODEC |
protected BlockState |
defaultBlock |
protected BlockState |
defaultFluid |
private static float[] |
field_16649 |
protected Supplier<ChunkGeneratorType> |
field_24774 |
private static float[] |
field_24775 |
private OctavePerlinNoiseSampler |
field_24776 |
private SimplexNoiseSampler |
field_24777 |
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 |
private long |
worldSeed |
biomeSource, field_24746, field_24747| Modifier | Constructor and Description |
|---|---|
private |
SurfaceChunkGenerator(BiomeSource biomeSource,
BiomeSource biomeSource2,
long worldSeed,
Supplier<ChunkGeneratorType> supplier) |
|
SurfaceChunkGenerator(BiomeSource biomeSource,
long long2,
Supplier<ChunkGeneratorType> supplier) |
| Modifier and Type | Method and Description |
|---|---|
private void |
buildBedrock(Chunk chunk,
Random random) |
void |
buildSurface(ChunkRegion region,
Chunk chunk) |
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,
ChunkGeneratorType chunkGeneratorType) |
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) |
ChunkGenerator |
withSeed(long seed) |
addStructureReferences, carve, generateFeatures, getBiomeSource, getConfig, getHeightInGround, getHeightOnGround, getSpawnHeight, isStrongholdStartingChunk, locateStructure, populateBiomes, setStructureStartspublic static final com.mojang.serialization.Codec<SurfaceChunkGenerator> CODEC
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 worldSeed
protected final Supplier<ChunkGeneratorType> field_24774
private final int field_24779
public SurfaceChunkGenerator(BiomeSource biomeSource, long long2, Supplier<ChunkGeneratorType> supplier)
private SurfaceChunkGenerator(BiomeSource biomeSource, BiomeSource biomeSource2, long worldSeed, Supplier<ChunkGeneratorType> supplier)
protected com.mojang.serialization.Codec<? extends ChunkGenerator> method_28506()
method_28506 in class ChunkGenerator@Environment(value=CLIENT) public ChunkGenerator withSeed(long seed)
withSeed in class ChunkGeneratorpublic boolean method_28548(long long2,
ChunkGeneratorType chunkGeneratorType)
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