use of rtg.api.world.deco.DecoTree 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.deco.DecoTree 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.deco.DecoTree 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);
}
use of rtg.api.world.deco.DecoTree in project Realistic-Terrain-Generation by Team-RTG.
the class DecoCollectionExtremeHills 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(3f);
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(20);
nigraDeco.setMaxY(maxY);
return nigraDeco;
}
use of rtg.api.world.deco.DecoTree in project Realistic-Terrain-Generation by Team-RTG.
the class DecoCollectionIceTrees method shortPineTrees.
private DecoTree shortPineTrees(IBlockState log, IBlockState leaves, float noiseMin, float noiseMax) {
TreeRTG piceaSitchensis = new TreeRTGPiceaSitchensis().setLogBlock(log).setLeavesBlock(leaves).setMinTrunkSize(4).setMaxTrunkSize(8).setMinCrownSize(4).setMaxCrownSize(14);
ArrayList<IBlockState> validBlocks = piceaSitchensis.getValidGroundBlocks();
validBlocks.add(Blocks.SNOW.getDefaultState());
piceaSitchensis.setValidGroundBlocks(validBlocks);
this.addTree(piceaSitchensis);
return new DecoTree(piceaSitchensis).setStrengthFactorForLoops(4f).setTreeType(TreeType.RTG_TREE).setDistribution(forestDistribution).setTreeCondition(TreeCondition.NOISE_BETWEEN_AND_RANDOM_CHANCE).setTreeConditionNoise(noiseMin).setTreeConditionNoise2(noiseMax).setTreeConditionChance(2).setMaxY(85);
}
Aggregations