use of rtg.api.world.gen.feature.tree.rtg.TreeRTG in project Realistic-Terrain-Generation by Team-RTG.
the class DecoCollectionExtremeHillsM method nigraTrees.
@Override
protected DecoTree nigraTrees(IBlockState log, IBlockState leaves, int maxY, int minTrunkSize, int maxTrunkSize, int minCrownSize, int maxCrownSize) {
TreeRTG nigraTree = new TreeRTGPinusNigra();
nigraTree.setLogBlock(log);
nigraTree.setLeavesBlock(leaves);
nigraTree.setMinTrunkSize(minTrunkSize);
nigraTree.setMaxTrunkSize(maxTrunkSize);
nigraTree.setMinCrownSize(minCrownSize);
nigraTree.setMaxCrownSize(maxCrownSize);
this.addTree(nigraTree);
return new DecoTree(nigraTree).setLoops(4).setTreeType(DecoTree.TreeType.RTG_TREE).setTreeCondition(DecoTree.TreeCondition.RANDOM_CHANCE).setTreeConditionChance(3).setMaxY(maxY);
}
use of rtg.api.world.gen.feature.tree.rtg.TreeRTG in project Realistic-Terrain-Generation by Team-RTG.
the class DecoCollectionRoofedForest method roseaTrees.
private DecoTree roseaTrees(int minY, int maxY) {
TreeRTG roseaTree = new TreeRTGCeibaRosea(16f, 5, 0.32f, 0.1f);
roseaTree.setLogBlock(BlockUtil.getStateLog2(1));
roseaTree.setLeavesBlock(BlockUtil.getStateLeaf2(1));
roseaTree.setMinTrunkSize(2);
roseaTree.setMaxTrunkSize(3);
roseaTree.setMinCrownSize(8);
roseaTree.setMaxCrownSize(16);
roseaTree.setNoLeaves(false);
this.addTree(roseaTree);
return new DecoTree(roseaTree).setTreeType(DecoTree.TreeType.RTG_TREE).setDistribution(forestDistribution).setTreeCondition(DecoTree.TreeCondition.NOISE_BETWEEN_AND_RANDOM_CHANCE).setTreeConditionNoise(distributionNoiseMin).setTreeConditionNoise2(distributionNoiseMax).setTreeConditionChance(5).setStrengthFactorForLoops(10f).setMinY(minY).setMaxY(maxY).setScatter(new DecoTree.Scatter(16, 0));
}
use of rtg.api.world.gen.feature.tree.rtg.TreeRTG 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);
}
use of rtg.api.world.gen.feature.tree.rtg.TreeRTG in project Realistic-Terrain-Generation by Team-RTG.
the class DecoCollectionRoofedForest method pentandraTrees.
private DecoTree pentandraTrees(int minY, int maxY) {
TreeRTG pentandraTree = new TreeRTGCeibaPentandra(13f, 3, 0.32f, 0.1f);
pentandraTree.setLogBlock(BlockUtil.getStateLog2(1));
pentandraTree.setLeavesBlock(BlockUtil.getStateLeaf2(1));
pentandraTree.setMinTrunkSize(2);
pentandraTree.setMaxTrunkSize(3);
pentandraTree.setMinCrownSize(8);
pentandraTree.setMaxCrownSize(16);
pentandraTree.setNoLeaves(false);
this.addTree(pentandraTree);
return new DecoTree(pentandraTree).setTreeType(DecoTree.TreeType.RTG_TREE).setDistribution(forestDistribution).setTreeCondition(DecoTree.TreeCondition.NOISE_BETWEEN_AND_RANDOM_CHANCE).setTreeConditionNoise(distributionNoiseMin).setTreeConditionNoise2(distributionNoiseMax).setTreeConditionChance(5).setStrengthFactorForLoops(10f).setMinY(minY).setMaxY(maxY).setScatter(new DecoTree.Scatter(16, 0));
}
use of rtg.api.world.gen.feature.tree.rtg.TreeRTG in project Realistic-Terrain-Generation by Team-RTG.
the class DecoCollectionRoofedForest method mucronataTrees.
private DecoTree mucronataTrees(int minY, int maxY) {
TreeRTG mucronataTree = new TreeRTGRhizophoraMucronata(3, 4, 13f, 0.32f, 0.1f);
mucronataTree.setLogBlock(BlockUtil.getStateLog2(1));
mucronataTree.setLeavesBlock(BlockUtil.getStateLeaf2(1));
mucronataTree.setMinTrunkSize(2);
mucronataTree.setMaxTrunkSize(3);
mucronataTree.setMinCrownSize(8);
mucronataTree.setMaxCrownSize(16);
mucronataTree.setNoLeaves(false);
this.addTree(mucronataTree);
return new DecoTree(mucronataTree).setTreeType(DecoTree.TreeType.RTG_TREE).setDistribution(forestDistribution).setTreeCondition(DecoTree.TreeCondition.NOISE_BETWEEN_AND_RANDOM_CHANCE).setTreeConditionNoise(distributionNoiseMin).setTreeConditionNoise2(distributionNoiseMax).setTreeConditionChance(5).setStrengthFactorForLoops(10f).setMinY(minY).setMaxY(maxY).setScatter(new DecoTree.Scatter(16, 0));
}
Aggregations