public class OverworldChunkGenerator extends SurfaceChunkGenerator<OverworldChunkGeneratorConfig>
| Modifier and Type | Field and Description |
|---|---|
private static float[] |
BIOME_WEIGHT_TABLE |
private CatSpawner |
catSpawner |
private OctavePerlinNoiseSampler |
depthNoiseSampler |
private OverworldChunkGeneratorConfig |
generatorConfig |
private PhantomSpawner |
phantomSpawner |
private PillagerSpawner |
pillagerSpawner |
private ZombieSiegeManager |
zombieSiegeManager |
defaultBlock, defaultFluid, randombiomeSource| Constructor and Description |
|---|
OverworldChunkGenerator(BiomeSource biomeSource,
long seed,
OverworldChunkGeneratorConfig config) |
| Modifier and Type | Method and Description |
|---|---|
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 |
getSeaLevel() |
void |
populateEntities(ChunkRegion region) |
private double |
sampleDepthNoise(int x,
int y) |
protected void |
sampleNoiseColumn(double[] buffer,
int x,
int z) |
void |
spawnEntities(ServerWorld world,
boolean spawnMonsters,
boolean spawnAnimals) |
bottomInterpolationStart, buildBedrock, buildSurface, getBlockState, getColumnSample, getHeight, getNoiseSizeY, populateNoise, sampleNoiseColumn, sampleNoiseColumn, topInterpolationStartaddStructureReferences, carve, generateFeatures, getBiomeSource, getConfig, getDecorationBiome, getHeightInGround, getHeightOnGround, getMaxY, getSpawnHeight, getStructureConfig, hasStructure, hasStructure, locateStructure, populateBiomes, setStructureStartsprivate static final float[] BIOME_WEIGHT_TABLE
private final OctavePerlinNoiseSampler depthNoiseSampler
private final PhantomSpawner phantomSpawner
private final PillagerSpawner pillagerSpawner
private final CatSpawner catSpawner
private final ZombieSiegeManager zombieSiegeManager
private final OverworldChunkGeneratorConfig generatorConfig
public OverworldChunkGenerator(BiomeSource biomeSource, long seed, OverworldChunkGeneratorConfig config)
@Environment(value=CLIENT) public ChunkGenerator create(long seed)
create in class ChunkGeneratorpublic void populateEntities(ChunkRegion region)
populateEntities in class ChunkGeneratorprotected void sampleNoiseColumn(double[] buffer,
int x,
int z)
sampleNoiseColumn in class SurfaceChunkGenerator<OverworldChunkGeneratorConfig>protected double computeNoiseFalloff(double depth,
double scale,
int y)
computeNoiseFalloff in class SurfaceChunkGenerator<OverworldChunkGeneratorConfig>protected double[] computeNoiseRange(int x,
int z)
computeNoiseRange in class SurfaceChunkGenerator<OverworldChunkGeneratorConfig>private double sampleDepthNoise(int x,
int y)
public List<Biome.SpawnEntry> getEntitySpawnList(Biome biome, StructureAccessor accessor, SpawnGroup group, BlockPos pos)
getEntitySpawnList in class ChunkGeneratorpublic void spawnEntities(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals)
spawnEntities in class ChunkGeneratorpublic int getSeaLevel()
getSeaLevel in class ChunkGenerator