Search in sources :

Example 26 with TreeRTG

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);
}
Also used : DecoTree(rtg.api.world.deco.DecoTree) TreeRTGPinusNigra(rtg.api.world.gen.feature.tree.rtg.TreeRTGPinusNigra) TreeRTG(rtg.api.world.gen.feature.tree.rtg.TreeRTG)

Example 27 with TreeRTG

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));
}
Also used : TreeRTGCeibaRosea(rtg.api.world.gen.feature.tree.rtg.TreeRTGCeibaRosea) TreeRTG(rtg.api.world.gen.feature.tree.rtg.TreeRTG)

Example 28 with TreeRTG

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);
}
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)

Example 29 with TreeRTG

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));
}
Also used : TreeRTG(rtg.api.world.gen.feature.tree.rtg.TreeRTG) TreeRTGCeibaPentandra(rtg.api.world.gen.feature.tree.rtg.TreeRTGCeibaPentandra)

Example 30 with TreeRTG

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));
}
Also used : TreeRTG(rtg.api.world.gen.feature.tree.rtg.TreeRTG) TreeRTGRhizophoraMucronata(rtg.api.world.gen.feature.tree.rtg.TreeRTGRhizophoraMucronata)

Aggregations

TreeRTG (rtg.api.world.gen.feature.tree.rtg.TreeRTG)32 DecoTree (rtg.api.world.deco.DecoTree)9 TreeRTGPinusNigra (rtg.api.world.gen.feature.tree.rtg.TreeRTGPinusNigra)6 TreeRTGPinusPonderosa (rtg.api.world.gen.feature.tree.rtg.TreeRTGPinusPonderosa)6 TreeRTGRhizophoraMucronata (rtg.api.world.gen.feature.tree.rtg.TreeRTGRhizophoraMucronata)6 DecoHelperThisOrThat (rtg.api.world.deco.helper.DecoHelperThisOrThat)5 TreeRTGBetulaPapyrifera (rtg.api.world.gen.feature.tree.rtg.TreeRTGBetulaPapyrifera)4 TreeRTGCocosNucifera (rtg.api.world.gen.feature.tree.rtg.TreeRTGCocosNucifera)4 IBlockState (net.minecraft.block.state.IBlockState)3 WorldGenMegaJungle (net.minecraft.world.gen.feature.WorldGenMegaJungle)3 DecoHelper5050 (rtg.api.world.deco.helper.DecoHelper5050)3 TreeRTGPiceaSitchensis (rtg.api.world.gen.feature.tree.rtg.TreeRTGPiceaSitchensis)3 TreeRTGSalixMyrtilloides (rtg.api.world.gen.feature.tree.rtg.TreeRTGSalixMyrtilloides)3 DecoCollectionDesertRiver (rtg.api.world.deco.collection.DecoCollectionDesertRiver)2 TreeRTGAcaciaBucheri (rtg.api.world.gen.feature.tree.rtg.TreeRTGAcaciaBucheri)2 TreeRTGCeibaPentandra (rtg.api.world.gen.feature.tree.rtg.TreeRTGCeibaPentandra)2 TreeRTGCeibaRosea (rtg.api.world.gen.feature.tree.rtg.TreeRTGCeibaRosea)2 TreeRTGPiceaPungens (rtg.api.world.gen.feature.tree.rtg.TreeRTGPiceaPungens)2 TreeRTGQuercusRobur (rtg.api.world.gen.feature.tree.rtg.TreeRTGQuercusRobur)2 DecoBaseBiomeDecorations (rtg.api.world.deco.DecoBaseBiomeDecorations)1