public class WorldGenBigTree extends WorldGenAbstractTree
Modifier and Type | Class and Description |
---|---|
(package private) static class |
WorldGenBigTree.FoliageCoordinates |
Modifier and Type | Field and Description |
---|---|
private BlockPos |
basePos |
(package private) double |
branchSlope |
(package private) java.util.List<WorldGenBigTree.FoliageCoordinates> |
field_175948_j |
(package private) int |
height |
(package private) double |
heightAttenuation |
(package private) int |
heightLimit |
(package private) int |
heightLimitLimit |
(package private) double |
leafDensity |
(package private) int |
leafDistanceLimit
Sets the distance limit for how far away the generator will populate leaves from the base leaf node.
|
private java.util.Random |
rand |
(package private) double |
scaleWidth |
(package private) int |
trunkSize |
private World |
world |
Constructor and Description |
---|
WorldGenBigTree(boolean p_i2008_1_) |
Modifier and Type | Method and Description |
---|---|
(package private) int |
checkBlockLine(BlockPos posOne,
BlockPos posTwo)
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.
|
void |
func_175904_e() |
(package private) void |
func_175937_a(BlockPos p_175937_1_,
BlockPos p_175937_2_,
Block p_175937_3_) |
private BlockLog.EnumAxis |
func_175938_b(BlockPos p_175938_1_,
BlockPos p_175938_2_) |
(package private) void |
func_181631_a(BlockPos p_181631_1_,
float p_181631_2_,
IBlockState p_181631_3_) |
boolean |
generate(World worldIn,
java.util.Random rand,
BlockPos position) |
(package private) void |
generateLeafNode(BlockPos pos)
Generates the leaves surrounding an individual entry in the leafNodes list.
|
(package private) void |
generateLeafNodeBases()
Generates additional wood blocks to fill out the bases of different leaf nodes that would otherwise degrade.
|
(package private) void |
generateLeafNodeList()
Generates a list of leaf nodes for the tree, to be populated by generateLeaves.
|
(package private) void |
generateLeaves()
Generates the leaf portion of the tree as specified by the leafNodes list.
|
(package private) void |
generateTrunk()
Places the trunk for the big tree that is being generated.
|
private int |
getGreatestDistance(BlockPos posIn)
Returns the absolute greatest distance in the BlockPos object.
|
(package private) float |
layerSize(int p_76490_1_)
Gets the rough size of a layer of the tree.
|
(package private) boolean |
leafNodeNeedsBase(int p_76493_1_)
Indicates whether or not a leaf node requires additional wood to be added to preserve integrity.
|
(package private) float |
leafSize(int p_76495_1_) |
private boolean |
validTreeLocation()
Returns a boolean indicating whether or not the current location for the tree, spanning basePos to to the height
limit, is valid.
|
func_150523_a, func_175921_a, func_180711_a
setBlockAndNotifyAdequately
private java.util.Random rand
private World world
private BlockPos basePos
int heightLimit
int height
double heightAttenuation
double branchSlope
double scaleWidth
double leafDensity
int trunkSize
int heightLimitLimit
int leafDistanceLimit
java.util.List<WorldGenBigTree.FoliageCoordinates> field_175948_j
void generateLeafNodeList()
void func_181631_a(BlockPos p_181631_1_, float p_181631_2_, IBlockState p_181631_3_)
float layerSize(int p_76490_1_)
float leafSize(int p_76495_1_)
void generateLeafNode(BlockPos pos)
private int getGreatestDistance(BlockPos posIn)
private BlockLog.EnumAxis func_175938_b(BlockPos p_175938_1_, BlockPos p_175938_2_)
void generateLeaves()
boolean leafNodeNeedsBase(int p_76493_1_)
void generateTrunk()
void generateLeafNodeBases()
int checkBlockLine(BlockPos posOne, BlockPos posTwo)
public void func_175904_e()
func_175904_e
in class WorldGenerator
public boolean generate(World worldIn, java.util.Random rand, BlockPos position)
generate
in class WorldGenerator
private boolean validTreeLocation()