Search in sources :

Example 6 with TreeRTG

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;
}
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 7 with TreeRTG

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);
}
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 8 with TreeRTG

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

Example 9 with TreeRTG

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

Example 10 with TreeRTG

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);
}
Also used : DecoTree(rtg.api.world.deco.DecoTree) IBlockState(net.minecraft.block.state.IBlockState) TreeRTG(rtg.api.world.gen.feature.tree.rtg.TreeRTG) TreeRTGPinusPonderosa(rtg.api.world.gen.feature.tree.rtg.TreeRTGPinusPonderosa)

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