public class ChunkGeneratorFlat extends java.lang.Object implements IChunkGenerator
Modifier and Type | Field and Description |
---|---|
private IBlockState[] |
cachedBlockIDs |
private FlatGeneratorInfo |
flatWorldGenInfo |
private boolean |
hasDecoration |
private boolean |
hasDungeons |
private WorldGenLakes |
lavaLakeGenerator |
private java.util.Random |
random |
private java.util.Map<java.lang.String,MapGenStructure> |
structureGenerators |
private WorldGenLakes |
waterLakeGenerator |
private World |
world |
Constructor and Description |
---|
ChunkGeneratorFlat(World worldIn,
long seed,
boolean generateStructures,
java.lang.String flatGeneratorSettings) |
Modifier and Type | Method and Description |
---|---|
Chunk |
generateChunk(int x,
int z) |
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) |
private final World world
private final java.util.Random random
private final IBlockState[] cachedBlockIDs
private final FlatGeneratorInfo flatWorldGenInfo
private final java.util.Map<java.lang.String,MapGenStructure> structureGenerators
private final boolean hasDecoration
private final boolean hasDungeons
private WorldGenLakes waterLakeGenerator
private WorldGenLakes lavaLakeGenerator
public ChunkGeneratorFlat(World worldIn, long seed, boolean generateStructures, java.lang.String flatGeneratorSettings)
public Chunk generateChunk(int x, int z)
generateChunk
in interface IChunkGenerator
public void populate(int x, int z)
populate
in interface IChunkGenerator
public boolean generateStructures(Chunk chunkIn, int x, int z)
generateStructures
in interface IChunkGenerator
public java.util.List<Biome.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos)
getPossibleCreatures
in interface IChunkGenerator
@Nullable public BlockPos getNearestStructurePos(World worldIn, java.lang.String structureName, BlockPos position, boolean findUnexplored)
getNearestStructurePos
in interface IChunkGenerator
public boolean isInsideStructure(World worldIn, java.lang.String structureName, BlockPos pos)
isInsideStructure
in interface IChunkGenerator
public void recreateStructures(Chunk chunkIn, int x, int z)
recreateStructures
in interface IChunkGenerator