Search in sources :

Example 6 with DecoShrub

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

the class RealisticBiomeMCMLoessPlateau method initDecos.

@Override
public void initDecos() {
    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(24);
    decoFallenTree.setLogBlock(BlockUtil.getStateLog(1));
    decoFallenTree.setLeavesBlock(BlockUtil.getStateLeaf(1));
    decoFallenTree.setMinSize(3);
    decoFallenTree.setMaxSize(6);
    this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
    DecoShrub decoShrub = new DecoShrub();
    decoShrub.setLogBlock(BlockUtil.getStateLog(1));
    decoShrub.setLeavesBlock(BlockUtil.getStateLeaf(1));
    decoShrub.setMaxY(90);
    decoShrub.setStrengthFactor(2f);
    decoShrub.setChance(12);
    this.addDeco(decoShrub);
    DecoBoulder decoBoulder = new DecoBoulder();
    decoBoulder.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
    decoBoulder.setChance(30);
    decoBoulder.setMaxY(80);
    decoBoulder.setStrengthFactor(2f);
    this.addDeco(decoBoulder);
    DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoBaseBiomeDecorations();
    this.addDeco(decoBaseBiomeDecorations);
}
Also used : DecoBaseBiomeDecorations(rtg.api.world.deco.DecoBaseBiomeDecorations) DecoShrub(rtg.api.world.deco.DecoShrub) DecoFallenTree(rtg.api.world.deco.DecoFallenTree) DecoBoulder(rtg.api.world.deco.DecoBoulder)

Example 7 with DecoShrub

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

the class RealisticBiomeMCMWarmTaiga method initDecos.

@Override
public void initDecos() {
    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(24);
    decoFallenTree.setLogBlock(BlockUtil.getStateLog(1));
    decoFallenTree.setLeavesBlock(BlockUtil.getStateLeaf(1));
    decoFallenTree.setMinSize(3);
    decoFallenTree.setMaxSize(6);
    this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
    DecoShrub decoShrub = new DecoShrub();
    decoShrub.setLogBlock(BlockUtil.getStateLog(1));
    decoShrub.setLeavesBlock(BlockUtil.getStateLeaf(1));
    decoShrub.setMaxY(90);
    decoShrub.setStrengthFactor(2f);
    decoShrub.setChance(12);
    this.addDeco(decoShrub);
    DecoBoulder decoBoulder = new DecoBoulder();
    decoBoulder.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
    decoBoulder.setChance(30);
    decoBoulder.setMaxY(80);
    decoBoulder.setStrengthFactor(2f);
    this.addDeco(decoBoulder);
    DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoBaseBiomeDecorations();
    this.addDeco(decoBaseBiomeDecorations);
}
Also used : DecoBaseBiomeDecorations(rtg.api.world.deco.DecoBaseBiomeDecorations) DecoShrub(rtg.api.world.deco.DecoShrub) DecoFallenTree(rtg.api.world.deco.DecoFallenTree) DecoBoulder(rtg.api.world.deco.DecoBoulder)

Example 8 with DecoShrub

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

the class RealisticBiomeVanillaMesaBryce method initDecos.

@Override
public void initDecos() {
    this.addDecoCollection(new DecoCollectionDesertRiver(this.getConfig().ALLOW_CACTUS.get()));
    DecoBoulder decoBoulder = new DecoBoulder();
    decoBoulder.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
    decoBoulder.setMaxY(83);
    this.addDeco(decoBoulder);
    DecoShrub decoShrub = new DecoShrub();
    decoShrub.setLoops(3);
    decoShrub.setMaxY(90);
    addDeco(decoShrub);
    DecoDeadBush decoDeadBush = new DecoDeadBush();
    decoDeadBush.setMaxY(100);
    decoDeadBush.setLoops(3);
    this.addDeco(decoDeadBush);
    DecoCactus decoCactus = new DecoCactus();
    decoCactus.setSoilBlock(BlockUtil.getStateSand(1));
    decoCactus.setLoops(18);
    decoCactus.setMaxY(100);
    this.addDeco(decoCactus, this.getConfig().ALLOW_CACTUS.get());
}
Also used : DecoDeadBush(rtg.api.world.deco.DecoDeadBush) DecoCollectionDesertRiver(rtg.api.world.deco.collection.DecoCollectionDesertRiver) DecoShrub(rtg.api.world.deco.DecoShrub) DecoBoulder(rtg.api.world.deco.DecoBoulder) DecoCactus(rtg.api.world.deco.DecoCactus)

Example 9 with DecoShrub

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

the class RealisticBiomeVanillaMesa method initDecos.

@Override
public void initDecos() {
    this.addDecoCollection(new DecoCollectionDesertRiver(this.getConfig().ALLOW_CACTUS.get()));
    DecoBoulder decoBoulder = new DecoBoulder();
    decoBoulder.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
    decoBoulder.setMaxY(83);
    this.addDeco(decoBoulder);
    DecoShrub decoShrub = new DecoShrub();
    decoShrub.setLoops(3);
    decoShrub.setMaxY(90);
    addDeco(decoShrub);
    DecoDeadBush decoDeadBush = new DecoDeadBush();
    decoDeadBush.setMaxY(100);
    decoDeadBush.setLoops(3);
    this.addDeco(decoDeadBush);
    DecoCactus decoCactus = new DecoCactus();
    decoCactus.setSoilBlock(BlockUtil.getStateSand(1));
    decoCactus.setLoops(18);
    decoCactus.setMaxY(100);
    this.addDeco(decoCactus, this.getConfig().ALLOW_CACTUS.get());
}
Also used : DecoDeadBush(rtg.api.world.deco.DecoDeadBush) DecoCollectionDesertRiver(rtg.api.world.deco.collection.DecoCollectionDesertRiver) DecoShrub(rtg.api.world.deco.DecoShrub) DecoBoulder(rtg.api.world.deco.DecoBoulder) DecoCactus(rtg.api.world.deco.DecoCactus)

Example 10 with DecoShrub

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

the class RealisticBiomeBYGWillowSwamps method initDecos.

@Override
public void initDecos() {
    DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoBaseBiomeDecorations();
    decoBaseBiomeDecorations.setMaxY(82);
    this.addDeco(decoBaseBiomeDecorations);
    TreeRTG myrtilloidesTree = new TreeRTGSalixMyrtilloides();
    myrtilloidesTree.setLogBlock(Blocks.LOG.getDefaultState());
    myrtilloidesTree.setLeavesBlock(Blocks.LEAVES.getDefaultState());
    this.addTree(myrtilloidesTree);
    DecoTree decoTrees = new DecoTree(myrtilloidesTree);
    decoTrees.getDistribution().setNoiseDivisor(80f);
    decoTrees.getDistribution().setNoiseFactor(60f);
    decoTrees.getDistribution().setNoiseAddend(-15f);
    decoTrees.setTreeType(DecoTree.TreeType.RTG_TREE);
    decoTrees.setTreeCondition(DecoTree.TreeCondition.NOISE_GREATER_AND_RANDOM_CHANCE);
    decoTrees.setTreeConditionNoise(0f);
    decoTrees.setTreeConditionChance(16);
    decoTrees.setMaxY(70);
    this.addDeco(decoTrees);
    DecoFallenTree decoFallenTree = new DecoFallenTree();
    decoFallenTree.getDistribution().setNoiseDivisor(80f);
    decoFallenTree.getDistribution().setNoiseFactor(60f);
    decoFallenTree.getDistribution().setNoiseAddend(-15f);
    decoFallenTree.setLogCondition(NOISE_GREATER_AND_RANDOM_CHANCE);
    decoFallenTree.setLogConditionNoise(0f);
    decoFallenTree.setLogConditionChance(6);
    decoFallenTree.setLogBlock(BlockUtil.getStateLog2(1));
    decoFallenTree.setLeavesBlock(BlockUtil.getStateLeaf2(1));
    decoFallenTree.setMinSize(3);
    decoFallenTree.setMaxSize(6);
    decoFallenTree.setMaxY(76);
    this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
    TreeRTG deadWillowTree = new TreeRTGSalixMyrtilloides();
    deadWillowTree.setLogBlock(Blocks.LOG.getDefaultState());
    deadWillowTree.setLeavesBlock(Blocks.LEAVES.getDefaultState());
    deadWillowTree.setNoLeaves(true);
    this.addTree(deadWillowTree);
    DecoTree deadWillow = new DecoTree(deadWillowTree);
    deadWillow.setTreeType(DecoTree.TreeType.RTG_TREE);
    deadWillow.setTreeCondition(DecoTree.TreeCondition.RANDOM_CHANCE);
    deadWillow.setTreeConditionChance(18);
    deadWillow.setMaxY(84);
    this.addDeco(deadWillow);
    DecoShrub decoShrub = new DecoShrub();
    decoShrub.setMaxY(88);
    decoShrub.setStrengthFactor(6f);
    this.addDeco(decoShrub);
    DecoShrub decoShrubBYG = new DecoShrub();
    decoShrubBYG.setLogBlock(willowLogBlock);
    decoShrubBYG.setLeavesBlock(willowLeavesBlock);
    decoShrubBYG.setMaxY(88);
    decoShrubBYG.setStrengthFactor(3f);
    this.addDeco(decoShrubBYG);
}
Also used : DecoBaseBiomeDecorations(rtg.api.world.deco.DecoBaseBiomeDecorations) DecoTree(rtg.api.world.deco.DecoTree) TreeRTGSalixMyrtilloides(rtg.api.world.gen.feature.tree.rtg.TreeRTGSalixMyrtilloides) DecoShrub(rtg.api.world.deco.DecoShrub) TreeRTG(rtg.api.world.gen.feature.tree.rtg.TreeRTG) DecoFallenTree(rtg.api.world.deco.DecoFallenTree)

Aggregations

DecoShrub (rtg.api.world.deco.DecoShrub)13 DecoBaseBiomeDecorations (rtg.api.world.deco.DecoBaseBiomeDecorations)11 DecoFallenTree (rtg.api.world.deco.DecoFallenTree)8 DecoGrass (rtg.api.world.deco.DecoGrass)7 DecoBoulder (rtg.api.world.deco.DecoBoulder)5 DecoCactus (rtg.api.world.deco.DecoCactus)2 DecoDeadBush (rtg.api.world.deco.DecoDeadBush)2 DecoSingleBiomeDecorations (rtg.api.world.deco.DecoSingleBiomeDecorations)2 DecoCollectionDesertRiver (rtg.api.world.deco.collection.DecoCollectionDesertRiver)2 DecoFlowersRTG (rtg.api.world.deco.DecoFlowersRTG)1 DecoTree (rtg.api.world.deco.DecoTree)1 TreeRTG (rtg.api.world.gen.feature.tree.rtg.TreeRTG)1 TreeRTGSalixMyrtilloides (rtg.api.world.gen.feature.tree.rtg.TreeRTGSalixMyrtilloides)1