Search in sources :

Example 16 with DecoBoulder

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

the class RealisticBiomeBOPSnowyConiferousForest method initDecos.

@Override
public void initDecos() {
    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(NOISE_GREATER_AND_RANDOM_CHANCE);
    decoFallenTree.setLogConditionNoise(0f);
    decoFallenTree.setLogConditionChance(16);
    decoFallenTree.setLogBlock(BOPBlocks.log_1.getStateFromMeta(3));
    decoFallenTree.setLeavesBlock(Blocks.LEAVES.getDefaultState());
    decoFallenTree.setMinSize(3);
    decoFallenTree.setMaxSize(4);
    this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
    DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoSingleBiomeDecorations();
    decoBaseBiomeDecorations.setNotEqualsZeroChance(12);
    this.addDeco(decoBaseBiomeDecorations);
}
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 17 with DecoBoulder

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

the class RealisticBiomeBOPRedwoodForest method initDecos.

@Override
public void initDecos() {
    DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoSingleBiomeDecorations();
    this.addDeco(decoBaseBiomeDecorations);
    DecoBoulder decoBoulder1 = new DecoBoulder();
    decoBoulder1.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
    decoBoulder1.setMaxY(80);
    decoBoulder1.setChance(16);
    decoBoulder1.setStrengthFactor(1f);
    DecoBoulder decoBoulder2 = new DecoBoulder();
    decoBoulder2.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
    decoBoulder2.setMaxY(80);
    decoBoulder2.setChance(16);
    decoBoulder2.setStrengthFactor(1f);
    DecoHelper5050 decoHelper5050 = new DecoHelper5050(decoBoulder1, decoBoulder2);
    this.addDeco(decoHelper5050);
    DecoFallenTree decoFallenTree = new DecoFallenTree();
    decoFallenTree.getDistribution().setNoiseDivisor(80f);
    decoFallenTree.getDistribution().setNoiseFactor(60f);
    decoFallenTree.getDistribution().setNoiseAddend(-15f);
    decoFallenTree.setLogCondition(RANDOM_CHANCE);
    decoFallenTree.setLogConditionChance(12);
    decoFallenTree.setLogBlock(BOPBlocks.log_3.getDefaultState());
    decoFallenTree.setLeavesBlock(Blocks.LEAVES.getDefaultState());
    decoFallenTree.setMinSize(3);
    decoFallenTree.setMaxSize(9);
    this.addDeco(decoFallenTree, 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 18 with DecoBoulder

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

the class RealisticBiomeVanillaColdBeach method initDecos.

@Override
public void initDecos() {
    DecoBoulder decoBoulder = new DecoBoulder();
    decoBoulder.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
    decoBoulder.setChance(16);
    decoBoulder.setMaxY(95);
    decoBoulder.setStrengthFactor(3f);
    this.addDeco(decoBoulder);
}
Also used : DecoBoulder(rtg.api.world.deco.DecoBoulder)

Example 19 with DecoBoulder

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

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

the class RealisticBiomeMWDeadForest method initDecos.

@Override
public void initDecos() {
    DecoBoulder decoBoulder = new DecoBoulder();
    decoBoulder.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
    decoBoulder.setChance(24);
    decoBoulder.setMaxY(95);
    decoBoulder.setStrengthFactor(2f);
    this.addDeco(decoBoulder);
    DecoFallenTree decoFallenTree1 = new DecoFallenTree();
    decoFallenTree1.setLoops(1);
    decoFallenTree1.getDistribution().setNoiseDivisor(100f);
    decoFallenTree1.getDistribution().setNoiseFactor(6f);
    decoFallenTree1.getDistribution().setNoiseAddend(0.8f);
    decoFallenTree1.setLogCondition(NOISE_GREATER_AND_RANDOM_CHANCE);
    decoFallenTree1.setLogConditionNoise(0f);
    decoFallenTree1.setLogConditionChance(10);
    decoFallenTree1.setMaxY(100);
    decoFallenTree1.setLogBlock(BlockUtil.getStateLog(1));
    decoFallenTree1.setLeavesBlock(BlockUtil.getStateLeaf(1));
    decoFallenTree1.setMinSize(3);
    decoFallenTree1.setMaxSize(5);
    DecoFallenTree decoFallenTree2 = new DecoFallenTree();
    decoFallenTree2.setLoops(1);
    decoFallenTree2.getDistribution().setNoiseDivisor(100f);
    decoFallenTree2.getDistribution().setNoiseFactor(6f);
    decoFallenTree2.getDistribution().setNoiseAddend(0.8f);
    decoFallenTree2.setLogCondition(NOISE_GREATER_AND_RANDOM_CHANCE);
    decoFallenTree2.setLogConditionNoise(0f);
    decoFallenTree2.setLogConditionChance(10);
    decoFallenTree2.setMaxY(100);
    decoFallenTree2.setLogBlock(BlockUtil.getStateLog(3));
    decoFallenTree2.setLeavesBlock(BlockUtil.getStateLeaf(3));
    decoFallenTree2.setMinSize(3);
    decoFallenTree2.setMaxSize(5);
    DecoHelperRandomSplit decoHelperRandomSplit = new DecoHelperRandomSplit();
    decoHelperRandomSplit.decos = new DecoBase[] { decoFallenTree2, decoFallenTree1 };
    decoHelperRandomSplit.chances = new int[] { 12, 8 };
    this.addDeco(decoHelperRandomSplit, this.getConfig().ALLOW_LOGS.get());
    DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoBaseBiomeDecorations();
    this.addDeco(decoBaseBiomeDecorations);
}
Also used : DecoBaseBiomeDecorations(rtg.api.world.deco.DecoBaseBiomeDecorations) DecoFallenTree(rtg.api.world.deco.DecoFallenTree) DecoHelperRandomSplit(rtg.api.world.deco.helper.DecoHelperRandomSplit) DecoBoulder(rtg.api.world.deco.DecoBoulder)

Aggregations

DecoBoulder (rtg.api.world.deco.DecoBoulder)20 DecoBaseBiomeDecorations (rtg.api.world.deco.DecoBaseBiomeDecorations)16 DecoFallenTree (rtg.api.world.deco.DecoFallenTree)15 DecoSingleBiomeDecorations (rtg.api.world.deco.DecoSingleBiomeDecorations)11 DecoShrub (rtg.api.world.deco.DecoShrub)5 DecoHelper5050 (rtg.api.world.deco.helper.DecoHelper5050)4 DecoHelperRandomSplit (rtg.api.world.deco.helper.DecoHelperRandomSplit)4 DecoCactus (rtg.api.world.deco.DecoCactus)2 DecoDeadBush (rtg.api.world.deco.DecoDeadBush)2 DecoGrass (rtg.api.world.deco.DecoGrass)2 DecoCollectionDesertRiver (rtg.api.world.deco.collection.DecoCollectionDesertRiver)2 DecoJungleCacti (rtg.api.world.deco.DecoJungleCacti)1