public class MapGenRavine extends MapGenBase
rand, range, worldObj
Constructor and Description |
---|
MapGenRavine() |
Modifier and Type | Method and Description |
---|---|
protected void |
digBlock(byte[] data,
int index,
int x,
int y,
int z,
int chunkX,
int chunkZ,
boolean foundTop)
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.
|
protected void |
generateRavine(long par1,
int par3,
int par4,
byte[] par5ArrayOfByte,
double par6,
double par8,
double par10,
float par12,
float par13,
float par14,
int par15,
int par16,
double par17) |
protected boolean |
isOceanBlock(byte[] data,
int index,
int x,
int y,
int z,
int chunkX,
int chunkZ) |
protected void |
recursiveGenerate(World par1World,
int par2,
int par3,
int par4,
int par5,
byte[] par6ArrayOfByte)
Recursively called by generate() (generate) and optionally by itself.
|
generate
protected void generateRavine(long par1, int par3, int par4, byte[] par5ArrayOfByte, double par6, double par8, double par10, float par12, float par13, float par14, int par15, int par16, double par17)
protected void recursiveGenerate(World par1World, int par2, int par3, int par4, int par5, byte[] par6ArrayOfByte)
recursiveGenerate
in class MapGenBase
protected boolean isOceanBlock(byte[] data, int index, int x, int y, int z, int chunkX, int chunkZ)
protected void digBlock(byte[] data, int index, int x, int y, int z, int chunkX, int chunkZ, boolean foundTop)
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.