YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.world.gen.MapGenCaves Class Reference
Inheritance diagram for net.minecraft.world.gen.MapGenCaves:
net.minecraft.world.gen.MapGenBase

Protected Member Functions

void generateLargeCaveNode (long par1, int par3, int par4, byte[] par5ArrayOfByte, double par6, double par8, double par10)
 
void generateCaveNode (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)
 
void recursiveGenerate (World par1World, int par2, int par3, int par4, int par5, byte[] par6ArrayOfByte)
 
boolean isOceanBlock (byte[] data, int index, int x, int y, int z, int chunkX, int chunkZ)
 
void digBlock (byte[] data, int index, int x, int y, int z, int chunkX, int chunkZ, boolean foundTop)
 
- Protected Member Functions inherited from net.minecraft.world.gen.MapGenBase
void recursiveGenerate (World par1World, int par2, int par3, int par4, int par5, byte[] par6ArrayOfByte)
 

Additional Inherited Members

- Public Member Functions inherited from net.minecraft.world.gen.MapGenBase
void generate (IChunkProvider par1IChunkProvider, World par2World, int par3, int par4, byte[] par5ArrayOfByte)
 
- Protected Attributes inherited from net.minecraft.world.gen.MapGenBase
int range = 8
 
Random rand = new Random()
 
World worldObj
 

Member Function Documentation

void net.minecraft.world.gen.MapGenCaves.digBlock ( byte[]  data,
int  index,
int  x,
int  y,
int  z,
int  chunkX,
int  chunkZ,
boolean  foundTop 
)
protected

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. If setting to air, it also checks to see if we've broken the surface and if so tries to make the floor the biome's top block

Parameters
dataBlock data array
indexPre-calculated index into block data
xlocal X position
ylocal Y position
zlocal Z position
chunkXChunk X position
chunkZChunk Y position
foundTopTrue if we've encountered the biome's top block. Ideally if we've broken the surface.
void net.minecraft.world.gen.MapGenCaves.generateCaveNode ( 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

Generates a node in the current cave system recursion tree.

void net.minecraft.world.gen.MapGenCaves.generateLargeCaveNode ( long  par1,
int  par3,
int  par4,
byte[]  par5ArrayOfByte,
double  par6,
double  par8,
double  par10 
)
protected

Generates a larger initial cave node than usual. Called 25% of the time.

boolean net.minecraft.world.gen.MapGenCaves.isOceanBlock ( byte[]  data,
int  index,
int  x,
int  y,
int  z,
int  chunkX,
int  chunkZ 
)
protected
void net.minecraft.world.gen.MapGenCaves.recursiveGenerate ( World  par1World,
int  par2,
int  par3,
int  par4,
int  par5,
byte[]  par6ArrayOfByte 
)
protected

Recursively called by generate() (generate) and optionally by itself.


The documentation for this class was generated from the following file: