use of rtg.api.world.gen.feature.tree.rtg.TreeRTG in project Realistic-Terrain-Generation by Team-RTG.
the class DecoCollectionExtremeHillsPlus method nigraTrees.
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);
DecoTree nigraDeco = new DecoTree(nigraTree);
nigraDeco.setStrengthFactorForLoops(4f);
nigraDeco.setStrengthNoiseFactorXForLoops(true);
nigraDeco.getDistribution().setNoiseDivisor(100f);
nigraDeco.getDistribution().setNoiseFactor(6f);
nigraDeco.getDistribution().setNoiseAddend(0.8f);
nigraDeco.setTreeType(DecoTree.TreeType.RTG_TREE);
nigraDeco.setTreeCondition(DecoTree.TreeCondition.RANDOM_CHANCE);
nigraDeco.setTreeConditionChance(12);
nigraDeco.setMaxY(maxY);
return nigraDeco;
}
use of rtg.api.world.gen.feature.tree.rtg.TreeRTG in project Realistic-Terrain-Generation by Team-RTG.
the class DecoCollectionExtremeHillsPlusM 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(3).setTreeType(DecoTree.TreeType.RTG_TREE).setTreeCondition(DecoTree.TreeCondition.RANDOM_CHANCE).setTreeConditionChance(4).setMaxY(maxY);
}
use of rtg.api.world.gen.feature.tree.rtg.TreeRTG 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);
}
use of rtg.api.world.gen.feature.tree.rtg.TreeRTG in project Realistic-Terrain-Generation by Team-RTG.
the class DecoCollectionForest method tallPineTrees.
private DecoTree tallPineTrees(IBlockState log, IBlockState leaves, float noiseMin, float noiseMax) {
TreeRTG pinusPonderosa = new TreeRTGPinusPonderosa();
pinusPonderosa.setLogBlock(log);
pinusPonderosa.setLeavesBlock(leaves);
pinusPonderosa.setMinTrunkSize(11);
pinusPonderosa.setMaxTrunkSize(21);
pinusPonderosa.setMinCrownSize(15);
pinusPonderosa.setMaxCrownSize(29);
this.addTree(pinusPonderosa);
return new DecoTree(pinusPonderosa).setStrengthFactorForLoops(8f).setTreeType(TreeType.RTG_TREE).setDistribution(forestDistribution).setTreeCondition(TreeCondition.NOISE_BETWEEN_AND_RANDOM_CHANCE).setTreeConditionNoise(noiseMin).setTreeConditionNoise2(noiseMax).setTreeConditionChance(1).setMaxY(85);
}
use of rtg.api.world.gen.feature.tree.rtg.TreeRTG in project Realistic-Terrain-Generation by Team-RTG.
the class DecoCollectionIceTrees method tallPineTrees.
private DecoTree tallPineTrees(IBlockState log, IBlockState leaves, float noiseMin, float noiseMax) {
TreeRTG pinusPonderosa = new TreeRTGPinusPonderosa();
pinusPonderosa.setLogBlock(log);
pinusPonderosa.setLeavesBlock(leaves);
pinusPonderosa.setMinTrunkSize(8);
pinusPonderosa.setMaxTrunkSize(21);
pinusPonderosa.setMinCrownSize(13);
pinusPonderosa.setMaxCrownSize(29);
ArrayList<IBlockState> validBlocks = pinusPonderosa.getValidGroundBlocks();
validBlocks.add(Blocks.SNOW.getDefaultState());
pinusPonderosa.setValidGroundBlocks(validBlocks);
this.addTree(pinusPonderosa);
return new DecoTree(pinusPonderosa).setStrengthFactorForLoops(4f).setTreeType(TreeType.RTG_TREE).setDistribution(forestDistribution).setTreeCondition(TreeCondition.NOISE_BETWEEN_AND_RANDOM_CHANCE).setTreeConditionNoise(noiseMin).setTreeConditionNoise2(noiseMax).setTreeConditionChance(2).setMaxY(85);
}
Aggregations