public abstract class WorldGenHugeTrees extends WorldGenAbstractTree
Modifier and Type | Field and Description |
---|---|
protected int |
baseHeight
The base height of the tree
|
protected int |
extraRandomHeight |
protected IBlockState |
leavesMetadata
Sets the metadata for the leaves used in huge trees
|
protected IBlockState |
woodMetadata
Sets the metadata for the wood blocks used
|
Constructor and Description |
---|
WorldGenHugeTrees(boolean notify,
int baseHeightIn,
int extraRandomHeightIn,
IBlockState woodMetadataIn,
IBlockState leavesMetadataIn) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
ensureGrowable(World worldIn,
java.util.Random rand,
BlockPos treePos,
int p_175929_4_)
returns whether or not a tree can grow at a specific position.
|
protected int |
getHeight(java.util.Random rand)
calculates the height based on this trees base height and its extra random height
|
protected void |
growLeavesLayer(World worldIn,
BlockPos layerCenter,
int width)
grow leaves in a circle
|
protected void |
growLeavesLayerStrict(World worldIn,
BlockPos layerCenter,
int width)
grow leaves in a circle with the outsides being within the circle
|
canGrowInto, generateSaplings, isReplaceable, setDirtAt
generate, setBlockAndNotifyAdequately, setDecorationDefaults
protected final int baseHeight
protected final IBlockState woodMetadata
protected final IBlockState leavesMetadata
protected int extraRandomHeight
public WorldGenHugeTrees(boolean notify, int baseHeightIn, int extraRandomHeightIn, IBlockState woodMetadataIn, IBlockState leavesMetadataIn)
protected int getHeight(java.util.Random rand)
protected boolean ensureGrowable(World worldIn, java.util.Random rand, BlockPos treePos, int p_175929_4_)
protected void growLeavesLayerStrict(World worldIn, BlockPos layerCenter, int width)