Search in sources :

Example 1 with TreeRTGPiceaPungens

use of rtg.api.world.gen.feature.tree.rtg.TreeRTGPiceaPungens in project Realistic-Terrain-Generation by Team-RTG.

the class DecoCollectionForest method randomPungensTrees.

private DecoTree randomPungensTrees() {
    TreeRTG piceaPungens = new TreeRTGPiceaPungens().setLogBlock(Blocks.LOG.getDefaultState()).setLeavesBlock(Blocks.LEAVES.getDefaultState()).setMinTrunkSize(2).setMaxTrunkSize(4).setMinCrownSize(5).setMaxCrownSize(8);
    this.addTree(piceaPungens);
    return new DecoTree(piceaPungens).setStrengthFactorForLoops(3f).setTreeType(TreeType.RTG_TREE).setTreeCondition(TreeCondition.RANDOM_CHANCE).setTreeConditionChance(5).setMaxY(100);
}
Also used : TreeRTG(rtg.api.world.gen.feature.tree.rtg.TreeRTG) TreeRTGPiceaPungens(rtg.api.world.gen.feature.tree.rtg.TreeRTGPiceaPungens)

Example 2 with TreeRTGPiceaPungens

use of rtg.api.world.gen.feature.tree.rtg.TreeRTGPiceaPungens in project Realistic-Terrain-Generation by Team-RTG.

the class DecoCollectionIceTrees method randomPungensTrees.

private DecoTree randomPungensTrees() {
    TreeRTG piceaPungens = new TreeRTGPiceaPungens().setLogBlock(Blocks.PACKED_ICE.getDefaultState()).setLeavesBlock(Blocks.ICE.getDefaultState()).setMinTrunkSize(2).setMaxTrunkSize(4).setMinCrownSize(4).setMaxCrownSize(8);
    ArrayList<IBlockState> validBlocks = piceaPungens.getValidGroundBlocks();
    validBlocks.add(Blocks.SNOW.getDefaultState());
    piceaPungens.setValidGroundBlocks(validBlocks);
    this.addTree(piceaPungens);
    return new DecoTree(piceaPungens).setStrengthFactorForLoops(3f).setTreeType(TreeType.RTG_TREE).setTreeCondition(TreeCondition.RANDOM_CHANCE).setTreeConditionChance(8).setMaxY(100);
}
Also used : DecoTree(rtg.api.world.deco.DecoTree) IBlockState(net.minecraft.block.state.IBlockState) TreeRTG(rtg.api.world.gen.feature.tree.rtg.TreeRTG) TreeRTGPiceaPungens(rtg.api.world.gen.feature.tree.rtg.TreeRTGPiceaPungens)

Aggregations

TreeRTG (rtg.api.world.gen.feature.tree.rtg.TreeRTG)2 TreeRTGPiceaPungens (rtg.api.world.gen.feature.tree.rtg.TreeRTGPiceaPungens)2 IBlockState (net.minecraft.block.state.IBlockState)1 DecoTree (rtg.api.world.deco.DecoTree)1