public class ChunkGeneratorOverworld extends java.lang.Object implements IChunkGenerator
| Modifier and Type | Field and Description |
|---|---|
NoiseGeneratorOctaves |
depthNoise |
NoiseGeneratorOctaves |
forestNoise |
NoiseGeneratorOctaves |
scaleNoise |
protected static IBlockState |
STONE |
| Constructor and Description |
|---|
ChunkGeneratorOverworld(World worldIn,
long seed,
boolean mapFeaturesEnabledIn,
java.lang.String generatorOptions) |
| Modifier and Type | Method and Description |
|---|---|
Chunk |
generateChunk(int x,
int z)
Generates the chunk at the specified position, from scratch
|
boolean |
generateStructures(Chunk chunkIn,
int x,
int z)
Called to generate additional structures after initial worldgen, used by ocean monuments
|
BlockPos |
getNearestStructurePos(World worldIn,
java.lang.String structureName,
BlockPos position,
boolean findUnexplored) |
java.util.List<Biome.SpawnListEntry> |
getPossibleCreatures(EnumCreatureType creatureType,
BlockPos pos) |
boolean |
isInsideStructure(World worldIn,
java.lang.String structureName,
BlockPos pos) |
void |
populate(int x,
int z)
Generate initial structures in this chunk, e.g.
|
void |
recreateStructures(Chunk chunkIn,
int x,
int z)
Recreates data about structures intersecting given chunk (used for example by getPossibleCreatures), without
placing any blocks.
|
void |
replaceBiomeBlocks(int x,
int z,
ChunkPrimer primer,
Biome[] biomesIn) |
void |
setBlocksInChunk(int x,
int z,
ChunkPrimer primer) |
protected static final IBlockState STONE
public NoiseGeneratorOctaves scaleNoise
public NoiseGeneratorOctaves depthNoise
public NoiseGeneratorOctaves forestNoise
public ChunkGeneratorOverworld(World worldIn, long seed, boolean mapFeaturesEnabledIn, java.lang.String generatorOptions)
public void setBlocksInChunk(int x,
int z,
ChunkPrimer primer)
public void replaceBiomeBlocks(int x,
int z,
ChunkPrimer primer,
Biome[] biomesIn)
public Chunk generateChunk(int x, int z)
generateChunk in interface IChunkGeneratorpublic void populate(int x,
int z)
populate in interface IChunkGeneratorpublic boolean generateStructures(Chunk chunkIn, int x, int z)
generateStructures in interface IChunkGeneratorpublic java.util.List<Biome.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos)
getPossibleCreatures in interface IChunkGeneratorpublic boolean isInsideStructure(World worldIn, java.lang.String structureName, BlockPos pos)
isInsideStructure in interface IChunkGeneratorpublic BlockPos getNearestStructurePos(World worldIn, java.lang.String structureName, BlockPos position, boolean findUnexplored)
getNearestStructurePos in interface IChunkGeneratorpublic void recreateStructures(Chunk chunkIn, int x, int z)
recreateStructures in interface IChunkGenerator