public class WorldGenTrees extends WorldGenAbstractTree
Modifier and Type | Field and Description |
---|---|
private static IBlockState |
DEFAULT_LEAF |
private static IBlockState |
DEFAULT_TRUNK |
private IBlockState |
metaLeaves |
private IBlockState |
metaWood |
private int |
minTreeHeight |
private boolean |
vinesGrow |
Constructor and Description |
---|
WorldGenTrees(boolean p_i2027_1_) |
WorldGenTrees(boolean notify,
int minTreeHeightIn,
IBlockState woodMeta,
IBlockState p_i46446_4_,
boolean growVines) |
Modifier and Type | Method and Description |
---|---|
private void |
addHangingVine(World worldIn,
BlockPos pos,
PropertyBool prop) |
private void |
addVine(World worldIn,
BlockPos pos,
PropertyBool prop) |
boolean |
generate(World worldIn,
java.util.Random rand,
BlockPos position) |
private void |
placeCocoa(World worldIn,
int p_181652_2_,
BlockPos pos,
EnumFacing side) |
canGrowInto, generateSaplings, isReplaceable, setDirtAt
setBlockAndNotifyAdequately, setDecorationDefaults
private static final IBlockState DEFAULT_TRUNK
private static final IBlockState DEFAULT_LEAF
private final int minTreeHeight
private final boolean vinesGrow
private final IBlockState metaWood
private final IBlockState metaLeaves
public WorldGenTrees(boolean p_i2027_1_)
public WorldGenTrees(boolean notify, int minTreeHeightIn, IBlockState woodMeta, IBlockState p_i46446_4_, boolean growVines)
public boolean generate(World worldIn, java.util.Random rand, BlockPos position)
generate
in class WorldGenerator
private void placeCocoa(World worldIn, int p_181652_2_, BlockPos pos, EnumFacing side)
private void addVine(World worldIn, BlockPos pos, PropertyBool prop)
private void addHangingVine(World worldIn, BlockPos pos, PropertyBool prop)