Search in sources :

Example 6 with DecoSingleBiomeDecorations

use of rtg.api.world.deco.DecoSingleBiomeDecorations 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 7 with DecoSingleBiomeDecorations

use of rtg.api.world.deco.DecoSingleBiomeDecorations in project Realistic-Terrain-Generation by Team-RTG.

the class RealisticBiomeBOPLavenderFields method initDecos.

@Override
public void initDecos() {
    DecoShrub decoShrub = new DecoShrub();
    decoShrub.setMaxY(110);
    decoShrub.setChance(10);
    decoShrub.setStrengthFactor(4f);
    this.addDeco(decoShrub);
    DecoGrass decoGrass = new DecoGrass();
    decoGrass.setMaxY(128);
    decoGrass.setStrengthFactor(6f);
    this.addDeco(decoGrass);
    DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoSingleBiomeDecorations();
    this.addDeco(decoBaseBiomeDecorations);
}
Also used : DecoBaseBiomeDecorations(rtg.api.world.deco.DecoBaseBiomeDecorations) DecoSingleBiomeDecorations(rtg.api.world.deco.DecoSingleBiomeDecorations) DecoShrub(rtg.api.world.deco.DecoShrub) DecoGrass(rtg.api.world.deco.DecoGrass)

Example 8 with DecoSingleBiomeDecorations

use of rtg.api.world.deco.DecoSingleBiomeDecorations in project Realistic-Terrain-Generation by Team-RTG.

the class RealisticBiomeBOPSeasonalForest method initDecos.

@Override
public void initDecos() {
    DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoSingleBiomeDecorations();
    this.addDeco(decoBaseBiomeDecorations);
    DecoBoulder decoBoulder = new DecoBoulder();
    decoBoulder.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
    decoBoulder.setMaxY(80);
    decoBoulder.setChance(16);
    decoBoulder.setStrengthFactor(1f);
    this.addDeco(decoBoulder);
    DecoFallenTree decoFallenTree = new DecoFallenTree();
    decoFallenTree.getDistribution().setNoiseDivisor(80f);
    decoFallenTree.getDistribution().setNoiseFactor(60f);
    decoFallenTree.getDistribution().setNoiseAddend(-15f);
    decoFallenTree.setLogCondition(RANDOM_CHANCE);
    decoFallenTree.setLogConditionChance(6);
    decoFallenTree.setRandomLogBlocks(new IBlockState[] { BlockUtil.getStateLog2(1), Blocks.LOG.getDefaultState(), BlockUtil.getStateLog(2) });
    decoFallenTree.setMinSize(3);
    decoFallenTree.setMaxSize(4);
    this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
}
Also used : DecoBaseBiomeDecorations(rtg.api.world.deco.DecoBaseBiomeDecorations) DecoSingleBiomeDecorations(rtg.api.world.deco.DecoSingleBiomeDecorations) DecoFallenTree(rtg.api.world.deco.DecoFallenTree) DecoBoulder(rtg.api.world.deco.DecoBoulder)

Example 9 with DecoSingleBiomeDecorations

use of rtg.api.world.deco.DecoSingleBiomeDecorations in project Realistic-Terrain-Generation by Team-RTG.

the class RealisticBiomeBOPShield method initDecos.

@Override
public void initDecos() {
    DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoSingleBiomeDecorations();
    this.addDeco(decoBaseBiomeDecorations);
    DecoBoulder decoBoulder = new DecoBoulder();
    decoBoulder.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
    decoBoulder.setMaxY(80);
    decoBoulder.setChance(16);
    decoBoulder.setStrengthFactor(1f);
    this.addDeco(decoBoulder);
    DecoFallenTree decoFallenTree1 = new DecoFallenTree();
    decoFallenTree1.getDistribution().setNoiseDivisor(80f);
    decoFallenTree1.getDistribution().setNoiseFactor(60f);
    decoFallenTree1.getDistribution().setNoiseAddend(-15f);
    decoFallenTree1.setLogCondition(RANDOM_CHANCE);
    decoFallenTree1.setLogConditionNoise(0f);
    decoFallenTree1.setLogConditionChance(6);
    decoFallenTree1.setMaxY(100);
    decoFallenTree1.setLogBlock(BOPBlocks.log_2.getStateFromMeta(6));
    decoFallenTree1.setLeavesBlock(Blocks.LEAVES.getDefaultState());
    decoFallenTree1.setMinSize(3);
    decoFallenTree1.setMaxSize(4);
    DecoFallenTree decoFallenTree2 = new DecoFallenTree();
    decoFallenTree2.getDistribution().setNoiseDivisor(80f);
    decoFallenTree2.getDistribution().setNoiseFactor(60f);
    decoFallenTree2.getDistribution().setNoiseAddend(-15f);
    decoFallenTree2.setLogCondition(RANDOM_CHANCE);
    decoFallenTree2.setLogConditionNoise(0f);
    decoFallenTree2.setLogConditionChance(6);
    decoFallenTree2.setMaxY(100);
    decoFallenTree2.setLogBlock(BlockUtil.getStateLog(1));
    decoFallenTree2.setLeavesBlock(BlockUtil.getStateLeaf(1));
    decoFallenTree2.setMinSize(3);
    decoFallenTree2.setMaxSize(4);
    DecoHelper5050 decoHelperHelper5050 = new DecoHelper5050(decoFallenTree1, decoFallenTree2);
    this.addDeco(decoHelperHelper5050, this.getConfig().ALLOW_LOGS.get());
}
Also used : DecoBaseBiomeDecorations(rtg.api.world.deco.DecoBaseBiomeDecorations) DecoHelper5050(rtg.api.world.deco.helper.DecoHelper5050) DecoSingleBiomeDecorations(rtg.api.world.deco.DecoSingleBiomeDecorations) DecoFallenTree(rtg.api.world.deco.DecoFallenTree) DecoBoulder(rtg.api.world.deco.DecoBoulder)

Example 10 with DecoSingleBiomeDecorations

use of rtg.api.world.deco.DecoSingleBiomeDecorations in project Realistic-Terrain-Generation by Team-RTG.

the class RealisticBiomeBOPShrubland method initDecos.

@Override
public void initDecos() {
    DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoSingleBiomeDecorations();
    this.addDeco(decoBaseBiomeDecorations);
}
Also used : DecoBaseBiomeDecorations(rtg.api.world.deco.DecoBaseBiomeDecorations) DecoSingleBiomeDecorations(rtg.api.world.deco.DecoSingleBiomeDecorations)

Aggregations

DecoSingleBiomeDecorations (rtg.api.world.deco.DecoSingleBiomeDecorations)58 DecoBaseBiomeDecorations (rtg.api.world.deco.DecoBaseBiomeDecorations)56 DecoFallenTree (rtg.api.world.deco.DecoFallenTree)17 DecoBoulder (rtg.api.world.deco.DecoBoulder)11 DecoHelper5050 (rtg.api.world.deco.helper.DecoHelper5050)6 DecoHelperRandomSplit (rtg.api.world.deco.helper.DecoHelperRandomSplit)3 DecoGrass (rtg.api.world.deco.DecoGrass)2 DecoShrub (rtg.api.world.deco.DecoShrub)2 DecoFlowersRTG (rtg.api.world.deco.DecoFlowersRTG)1 DecoJungleCacti (rtg.api.world.deco.DecoJungleCacti)1 DecoPond (rtg.api.world.deco.DecoPond)1 DecoHelperBorder (rtg.api.world.deco.helper.DecoHelperBorder)1 TreeRTG (rtg.api.world.gen.feature.tree.rtg.TreeRTG)1 TreeRTGBetulaPapyrifera (rtg.api.world.gen.feature.tree.rtg.TreeRTGBetulaPapyrifera)1 TreeRTGPiceaSitchensis (rtg.api.world.gen.feature.tree.rtg.TreeRTGPiceaSitchensis)1