Search in sources :

Example 1 with TreeRTGPiceaSitchensis

use of rtg.api.world.gen.feature.tree.rtg.TreeRTGPiceaSitchensis in project Realistic-Terrain-Generation by Team-RTG.

the class RealisticBiomeBOPLandOfLakes method initDecos.

@Override
public void initDecos() {
    TreeRTG birchTree = new TreeRTGBetulaPapyrifera();
    birchTree.setLogBlock(BlockUtil.getStateLog(2));
    birchTree.setLeavesBlock(BlockUtil.getStateLeaf(2));
    birchTree.setMinTrunkSize(4);
    birchTree.setMaxTrunkSize(10);
    birchTree.setMinCrownSize(8);
    birchTree.setMaxCrownSize(19);
    this.addTree(birchTree);
    DecoTree birchTrees = new DecoTree(birchTree);
    birchTrees.setStrengthFactorForLoops(9f);
    birchTrees.setTreeType(DecoTree.TreeType.RTG_TREE);
    birchTrees.getDistribution().setNoiseDivisor(100f);
    birchTrees.getDistribution().setNoiseFactor(6f);
    birchTrees.getDistribution().setNoiseAddend(0.8f);
    birchTrees.setTreeCondition(DecoTree.TreeCondition.NOISE_GREATER_AND_RANDOM_CHANCE);
    birchTrees.setTreeConditionChance(1);
    birchTrees.setTreeConditionNoise(0f);
    birchTrees.setMaxY(120);
    TreeRTG sitchensisTree = new TreeRTGPiceaSitchensis();
    sitchensisTree.setLogBlock(BlockUtil.getStateLog(1));
    sitchensisTree.setLeavesBlock(BlockUtil.getStateLeaf(1));
    sitchensisTree.setMinTrunkSize(4);
    sitchensisTree.setMaxTrunkSize(9);
    sitchensisTree.setMinCrownSize(5);
    sitchensisTree.setMaxCrownSize(14);
    this.addTree(sitchensisTree);
    DecoTree smallPine = new DecoTree(sitchensisTree);
    smallPine.setStrengthFactorForLoops(9f);
    smallPine.setTreeType(DecoTree.TreeType.RTG_TREE);
    smallPine.getDistribution().setNoiseDivisor(100f);
    smallPine.getDistribution().setNoiseFactor(6f);
    smallPine.getDistribution().setNoiseAddend(0.8f);
    smallPine.setTreeCondition(DecoTree.TreeCondition.NOISE_GREATER_AND_RANDOM_CHANCE);
    smallPine.setTreeConditionChance(1);
    smallPine.setTreeConditionNoise(0f);
    smallPine.setMaxY(120);
    DecoHelper5050 decoHelper5050 = new DecoHelper5050(birchTrees, smallPine);
    DecoFallenTree decoFallenTree = new DecoFallenTree();
    decoFallenTree.getDistribution().setNoiseDivisor(100f);
    decoFallenTree.getDistribution().setNoiseFactor(6f);
    decoFallenTree.getDistribution().setNoiseAddend(0.8f);
    decoFallenTree.setLogCondition(NOISE_GREATER_AND_RANDOM_CHANCE);
    decoFallenTree.setLogConditionNoise(0f);
    decoFallenTree.setLogConditionChance(12);
    decoFallenTree.setRandomLogBlocks(new IBlockState[] { Blocks.LOG.getDefaultState(), BlockUtil.getStateLog(1), BlockUtil.getStateLog(2) });
    decoFallenTree.setMinSize(8);
    decoFallenTree.setMaxSize(12);
    this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
    DecoShrub decoShrub = new DecoShrub();
    decoShrub.setMaxY(110);
    decoShrub.setStrengthFactor(3f);
    this.addDeco(decoShrub);
    DecoBoulder decoBoulder = new DecoBoulder();
    decoBoulder.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
    decoBoulder.setMaxY(80);
    decoBoulder.setChance(12);
    decoBoulder.setStrengthFactor(1f);
    this.addDeco(decoBoulder);
    DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoSingleBiomeDecorations();
    this.addDeco(decoBaseBiomeDecorations);
}
Also used : DecoHelper5050(rtg.api.world.deco.helper.DecoHelper5050) DecoSingleBiomeDecorations(rtg.api.world.deco.DecoSingleBiomeDecorations) TreeRTG(rtg.api.world.gen.feature.tree.rtg.TreeRTG) TreeRTGPiceaSitchensis(rtg.api.world.gen.feature.tree.rtg.TreeRTGPiceaSitchensis) TreeRTGBetulaPapyrifera(rtg.api.world.gen.feature.tree.rtg.TreeRTGBetulaPapyrifera)

Example 2 with TreeRTGPiceaSitchensis

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

Example 3 with TreeRTGPiceaSitchensis

use of rtg.api.world.gen.feature.tree.rtg.TreeRTGPiceaSitchensis in project Realistic-Terrain-Generation by Team-RTG.

the class DecoCollectionForest method shortPineTrees.

private DecoTree shortPineTrees(IBlockState log, IBlockState leaves, float noiseMin, float noiseMax) {
    TreeRTG piceaSitchensis = new TreeRTGPiceaSitchensis().setLogBlock(log).setLeavesBlock(leaves).setMinTrunkSize(4).setMaxTrunkSize(10).setMinCrownSize(6).setMaxCrownSize(14);
    this.addTree(piceaSitchensis);
    return new DecoTree(piceaSitchensis).setStrengthFactorForLoops(6f).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) TreeRTGPiceaSitchensis(rtg.api.world.gen.feature.tree.rtg.TreeRTGPiceaSitchensis)

Aggregations

TreeRTG (rtg.api.world.gen.feature.tree.rtg.TreeRTG)3 TreeRTGPiceaSitchensis (rtg.api.world.gen.feature.tree.rtg.TreeRTGPiceaSitchensis)3 IBlockState (net.minecraft.block.state.IBlockState)1 DecoSingleBiomeDecorations (rtg.api.world.deco.DecoSingleBiomeDecorations)1 DecoTree (rtg.api.world.deco.DecoTree)1 DecoHelper5050 (rtg.api.world.deco.helper.DecoHelper5050)1 TreeRTGBetulaPapyrifera (rtg.api.world.gen.feature.tree.rtg.TreeRTGBetulaPapyrifera)1