public class Infdev227ChunkSource extends ChunkSource
blockSources, DEEP_OCEAN_MIN_DEPTH, defaultBlock, defaultFluid, OCEAN_MIN_DEPTH, random, seaLevel, seed, settings, worldHeight| Constructor and Description |
|---|
Infdev227ChunkSource(long seed,
ModernBetaGeneratorSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight(int x,
int z,
HeightmapChunk.Type type)
Sample height at given x/z coordinate.
|
int |
getSeaLevel()
Gets the chunk source sea level set in the chunk generator settings.
|
void |
provideInitialChunk(net.minecraft.world.chunk.ChunkPrimer chunkPrimer,
int chunkX,
int chunkZ)
Create initial chunk given chunk coordinates.
|
void |
provideProcessedChunk(net.minecraft.world.chunk.ChunkPrimer chunkPrimer,
int chunkX,
int chunkZ,
java.util.List<net.minecraft.world.gen.structure.StructureComponent> structureComponents)
Create processed chunk given chunk coordinates.
|
void |
provideSurface(net.minecraft.world.World world,
net.minecraft.world.biome.Biome[] biomes,
net.minecraft.world.chunk.ChunkPrimer chunkPrimer,
int chunkX,
int chunkZ)
Build surface for given chunk primer and chunk coordinates.
|
buildBiomeInjectorRules, createBiomeInjectionRules, createRandom, getBeachOctaveNoise, getDefaultBlock, getDefaultFluid, getForestOctaveNoise, getGeneratorSettings, getSeed, getSurfaceOctaveNoise, getWorldSpawner, pruneChunk, setBeachOctaveNoise, setCloudHeight, setForestOctaveNoise, setSurfaceOctaveNoise, skipChunkpublic Infdev227ChunkSource(long seed,
ModernBetaGeneratorSettings settings)
public void provideInitialChunk(net.minecraft.world.chunk.ChunkPrimer chunkPrimer,
int chunkX,
int chunkZ)
ChunkSourceBiomeProvider.getBiome() from World.
At this stage, the biomes have not actually been set for ModernBetaBiome to sample from.
Instead, get the biome provider, cast to ModernBetaBiomeProvider and use ModernBetaBiomeProvider.getBiomeSource() to sample biomes, or do final generation in processedChunk to get processed biome map.provideInitialChunk in class ChunkSourcechunkPrimer - Chunk primerchunkX - x-coordinate in chunk coordinateschunkZ - z-coordinate in chunk coordinatespublic void provideProcessedChunk(net.minecraft.world.chunk.ChunkPrimer chunkPrimer,
int chunkX,
int chunkZ,
java.util.List<net.minecraft.world.gen.structure.StructureComponent> structureComponents)
ChunkSourceprovideInitialChunk so villages can be placed correctly.
This does not need to be implemented and can be left empty, if you don't wish to do additional processing.provideProcessedChunk in class ChunkSourcechunkPrimer - Chunk primerchunkX - x-coordinate in chunk coordinateschunkZ - z-coordinate in chunk coordinatesstructureComponents - The list of structure components that at least partially occupy this chunk.public void provideSurface(net.minecraft.world.World world,
net.minecraft.world.biome.Biome[] biomes,
net.minecraft.world.chunk.ChunkPrimer chunkPrimer,
int chunkX,
int chunkZ)
ChunkSourceprovideSurface in class ChunkSourceworld - The world objectbiomes - Biome array for chunkchunkPrimer - Chunk primerchunkX - x-coordinate in chunk coordinateschunkZ - z-coordinate in chunk coordinatespublic int getHeight(int x,
int z,
HeightmapChunk.Type type)
ChunkSourcegetHeight in class ChunkSourcex - x-coordinate in block coordinates.z - z-coordinate in block coordinates.type - HeightmapChunk.Type.public int getSeaLevel()
ChunkSourcegetSeaLevel in class ChunkSource