Package btw.world.feature.trees
Class BigTreeGenerator
java.lang.Object
net.minecraft.src.WorldGenerator
net.minecraft.src.WorldGenBigTree
btw.world.feature.trees.BigTreeGenerator
-
Field Summary
Fields inherited from class net.minecraft.src.WorldGenBigTree
basePos, branchDensity, branchSlope, height, heightAttenuation, heightLimit, heightLimitLimit, leafDensity, leafDistanceLimit, leafNodes, otherCoordPairs, rand, scaleWidth, trunkSize, worldObj -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcheckBlockLine(int[] par1ArrayOfInteger, int[] par2ArrayOfInteger) Checks a line of blocks in the world from the first coordinate to triplet to the second, returning the distance (in blocks) before a non-air, non-leaf block is encountered and/or the end is encountered.voidgenTreeLayer(int par1, int par2, int par3, float par4, byte par5, int par6) booleanReturns a boolean indicating whether or not the current location for the tree, spanning basePos to to the height limit, is valid.Methods inherited from class net.minecraft.src.WorldGenBigTree
generate, generateLeafNode, generateLeafNodeBases, generateLeafNodeList, generateLeaves, generateTrunk, layerSize, leafNodeNeedsBase, leafSize, placeBlockLine, setScaleMethods inherited from class net.minecraft.src.WorldGenerator
setBlock, setBlockAndMetadata
-
Constructor Details
-
BigTreeGenerator
public BigTreeGenerator(boolean bDoBlockNotify)
-
-
Method Details
-
genTreeLayer
public void genTreeLayer(int par1, int par2, int par3, float par4, byte par5, int par6) - Overrides:
genTreeLayerin classWorldGenBigTree
-
checkBlockLine
public int checkBlockLine(int[] par1ArrayOfInteger, int[] par2ArrayOfInteger) Checks a line of blocks in the world from the first coordinate to triplet to the second, returning the distance (in blocks) before a non-air, non-leaf block is encountered and/or the end is encountered.- Overrides:
checkBlockLinein classWorldGenBigTree
-
validTreeLocation
public boolean validTreeLocation()Returns a boolean indicating whether or not the current location for the tree, spanning basePos to to the height limit, is valid.- Overrides:
validTreeLocationin classWorldGenBigTree
-