public class OverworldChunkGenerator extends SurfaceChunkGenerator<OverworldChunkGeneratorConfig>
Modifier and Type | Field and Description |
---|---|
private boolean |
amplified |
private static float[] |
BIOME_WEIGHT_TABLE |
private CatSpawner |
catSpawner |
private OctavePerlinNoiseSampler |
noiseSampler |
private PhantomSpawner |
phantomSpawner |
private PillagerSpawner |
pillagerSpawner |
private ZombieSiegeManager |
zombieSiegeManager |
defaultBlock, defaultFluid, random
biomeSource, config, seed, world
Constructor and Description |
---|
OverworldChunkGenerator(IWorld world,
BiomeSource biomeSource,
OverworldChunkGeneratorConfig config) |
Modifier and Type | Method and Description |
---|---|
protected double |
computeNoiseFalloff(double depth,
double scale,
int y) |
protected double[] |
computeNoiseRange(int x,
int z) |
List<Biome.SpawnEntry> |
getEntitySpawnList(StructureAccessor structureAccessor,
EntityCategory entityCategory,
BlockPos blockPos) |
int |
getSeaLevel() |
int |
getSpawnHeight() |
void |
populateEntities(ChunkRegion region) |
private double |
sampleNoise(int x,
int y) |
protected void |
sampleNoiseColumn(double[] buffer,
int x,
int z) |
void |
spawnEntities(ServerWorld world,
boolean spawnMonsters,
boolean spawnAnimals) |
buildBedrock, buildSurface, getColumnSample, getHeight, getNoiseSizeY, method_16409, method_16410, method_26262, populateNoise, sampleNoiseColumn, sampleNoiseColumn
addStructureReferences, carve, generateFeatures, getBiomeSource, getConfig, getDecorationBiome, getHeightInGround, getHeightOnGround, getMaxY, getSeed, getStructureConfig, hasStructure, locateStructure, method_27192, populateBiomes, setStructureStarts
private static final float[] BIOME_WEIGHT_TABLE
private final OctavePerlinNoiseSampler noiseSampler
private final boolean amplified
private final PhantomSpawner phantomSpawner
private final PillagerSpawner pillagerSpawner
private final CatSpawner catSpawner
private final ZombieSiegeManager zombieSiegeManager
public OverworldChunkGenerator(IWorld world, BiomeSource biomeSource, OverworldChunkGeneratorConfig config)
public void populateEntities(ChunkRegion region)
populateEntities
in class ChunkGenerator<OverworldChunkGeneratorConfig>
protected 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 sampleNoise(int x, int y)
public List<Biome.SpawnEntry> getEntitySpawnList(StructureAccessor structureAccessor, EntityCategory entityCategory, BlockPos blockPos)
getEntitySpawnList
in class ChunkGenerator<OverworldChunkGeneratorConfig>
public void spawnEntities(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals)
spawnEntities
in class ChunkGenerator<OverworldChunkGeneratorConfig>
public int getSpawnHeight()
getSpawnHeight
in class ChunkGenerator<OverworldChunkGeneratorConfig>
public int getSeaLevel()
getSeaLevel
in class ChunkGenerator<OverworldChunkGeneratorConfig>