public class MapGenCaves extends MapGenBase
Modifier and Type | Field and Description |
---|---|
protected static IBlockState |
BLK_AIR |
protected static IBlockState |
BLK_LAVA |
protected static IBlockState |
BLK_RED_SANDSTONE |
protected static IBlockState |
BLK_SANDSTONE |
rand, range, world
Constructor and Description |
---|
MapGenCaves() |
Modifier and Type | Method and Description |
---|---|
protected void |
addRoom(long p_180703_1_,
int p_180703_3_,
int p_180703_4_,
ChunkPrimer p_180703_5_,
double p_180703_6_,
double p_180703_8_,
double p_180703_10_) |
protected void |
addTunnel(long p_180702_1_,
int p_180702_3_,
int p_180702_4_,
ChunkPrimer p_180702_5_,
double p_180702_6_,
double p_180702_8_,
double p_180702_10_,
float p_180702_12_,
float p_180702_13_,
float p_180702_14_,
int p_180702_15_,
int p_180702_16_,
double p_180702_17_) |
protected boolean |
canReplaceBlock(IBlockState p_175793_1_,
IBlockState p_175793_2_) |
protected void |
digBlock(ChunkPrimer data,
int x,
int y,
int z,
int chunkX,
int chunkZ,
boolean foundTop,
IBlockState state,
IBlockState up)
Digs out the current block, default implementation removes stone, filler, and top block
Sets the block to lava if y is less then 10, and air other wise.
|
private boolean |
isExceptionBiome(Biome biome) |
protected boolean |
isOceanBlock(ChunkPrimer data,
int x,
int y,
int z,
int chunkX,
int chunkZ) |
private boolean |
isTopBlock(ChunkPrimer data,
int x,
int y,
int z,
int chunkX,
int chunkZ) |
protected void |
recursiveGenerate(World worldIn,
int chunkX,
int chunkZ,
int originalX,
int originalZ,
ChunkPrimer chunkPrimerIn) |
generate, setupChunkSeed
protected static final IBlockState BLK_LAVA
protected static final IBlockState BLK_AIR
protected static final IBlockState BLK_SANDSTONE
protected static final IBlockState BLK_RED_SANDSTONE
protected void addRoom(long p_180703_1_, int p_180703_3_, int p_180703_4_, ChunkPrimer p_180703_5_, double p_180703_6_, double p_180703_8_, double p_180703_10_)
protected void addTunnel(long p_180702_1_, int p_180702_3_, int p_180702_4_, ChunkPrimer p_180702_5_, double p_180702_6_, double p_180702_8_, double p_180702_10_, float p_180702_12_, float p_180702_13_, float p_180702_14_, int p_180702_15_, int p_180702_16_, double p_180702_17_)
protected boolean canReplaceBlock(IBlockState p_175793_1_, IBlockState p_175793_2_)
protected void recursiveGenerate(World worldIn, int chunkX, int chunkZ, int originalX, int originalZ, ChunkPrimer chunkPrimerIn)
recursiveGenerate
in class MapGenBase
protected boolean isOceanBlock(ChunkPrimer data, int x, int y, int z, int chunkX, int chunkZ)
private boolean isExceptionBiome(Biome biome)
private boolean isTopBlock(ChunkPrimer data, int x, int y, int z, int chunkX, int chunkZ)
protected void digBlock(ChunkPrimer data, int x, int y, int z, int chunkX, int chunkZ, boolean foundTop, IBlockState state, IBlockState up)
data
- Block data arrayindex
- Pre-calculated index into block datax
- local X positiony
- local Y positionz
- local Z positionchunkX
- Chunk X positionchunkZ
- Chunk Y positionfoundTop
- True if we've encountered the biome's top block. Ideally if we've broken the surface.