public class ChunkGeneratorDebug extends java.lang.Object implements IChunkGenerator
Modifier and Type | Field and Description |
---|---|
protected static IBlockState |
AIR |
protected static IBlockState |
BARRIER |
Constructor and Description |
---|
ChunkGeneratorDebug(World worldIn) |
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
|
static IBlockState |
getBlockStateFor(int p_177461_0_,
int p_177461_1_) |
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.
|
protected static final IBlockState AIR
protected static final IBlockState BARRIER
public ChunkGeneratorDebug(World worldIn)
public Chunk generateChunk(int x, int z)
generateChunk
in interface IChunkGenerator
public static IBlockState getBlockStateFor(int p_177461_0_, int p_177461_1_)
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
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