public class ChunkGeneratorOverworld extends java.lang.Object implements IChunkGenerator
| 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) |
private void |
generateHeightmap(int p_185978_1_,
int p_185978_2_,
int p_185978_3_) |
boolean |
generateStructures(Chunk chunkIn,
int x,
int z) |
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) |
void |
recreateStructures(Chunk chunkIn,
int x,
int z) |
void |
replaceBiomeBlocks(int x,
int z,
ChunkPrimer primer,
Biome[] biomesIn) |
void |
setBlocksInChunk(int x,
int z,
ChunkPrimer primer) |
protected static final IBlockState STONE
private final java.util.Random rand
private NoiseGeneratorOctaves minLimitPerlinNoise
private NoiseGeneratorOctaves maxLimitPerlinNoise
private NoiseGeneratorOctaves mainPerlinNoise
private NoiseGeneratorPerlin surfaceNoise
public NoiseGeneratorOctaves scaleNoise
public NoiseGeneratorOctaves depthNoise
public NoiseGeneratorOctaves forestNoise
private final World world
private final boolean mapFeaturesEnabled
private final WorldType terrainType
private final double[] heightMap
private final float[] biomeWeights
private ChunkGeneratorSettings settings
private IBlockState oceanBlock
private double[] depthBuffer
private MapGenBase caveGenerator
private MapGenStronghold strongholdGenerator
private MapGenVillage villageGenerator
private MapGenMineshaft mineshaftGenerator
private MapGenScatteredFeature scatteredFeatureGenerator
private MapGenBase ravineGenerator
private StructureOceanMonument oceanMonumentGenerator
private WoodlandMansion woodlandMansionGenerator
private Biome[] biomesForGeneration
double[] mainNoiseRegion
double[] minLimitRegion
double[] maxLimitRegion
double[] depthRegion
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 IChunkGeneratorprivate void generateHeightmap(int p_185978_1_,
int p_185978_2_,
int p_185978_3_)
public 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 IChunkGenerator@Nullable public 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