Search in sources :

Example 1 with DecoShrub

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

the class RealisticBiomeBYGBirchPlains 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(2));
    decoFallenTree.setLeavesBlock(BlockUtil.getStateLeaf(2));
    decoFallenTree.setMinSize(3);
    decoFallenTree.setMaxSize(6);
    this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
    DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoBaseBiomeDecorations();
    decoBaseBiomeDecorations.setMaxY(100);
    this.addDeco(decoBaseBiomeDecorations);
    DecoShrub decoShrubBirch = new DecoShrub();
    decoShrubBirch.setLogBlock(BlockUtil.getStateLog(2));
    decoShrubBirch.setLeavesBlock(BlockUtil.getStateLeaf(2));
    decoShrubBirch.setMaxY(90);
    decoShrubBirch.setStrengthFactor(6f);
    decoShrubBirch.setChance(4);
    this.addDeco(decoShrubBirch);
    DecoGrass decoGrass = new DecoGrass();
    decoGrass.setMaxY(100);
    decoGrass.setStrengthFactor(6f);
    this.addDeco(decoGrass);
}
Also used : DecoBaseBiomeDecorations(rtg.api.world.deco.DecoBaseBiomeDecorations) DecoShrub(rtg.api.world.deco.DecoShrub) DecoFallenTree(rtg.api.world.deco.DecoFallenTree) DecoGrass(rtg.api.world.deco.DecoGrass)

Example 2 with DecoShrub

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

the class RealisticBiomeBYGAthuraForest method initDecos.

@Override
public void initDecos() {
    DecoShrub decoShrubAthura = new DecoShrub();
    decoShrubAthura.setLogBlock(athuraLogBlock);
    decoShrubAthura.setLeavesBlock(athuraLeavesBlock);
    decoShrubAthura.setMaxY(90);
    decoShrubAthura.setStrengthFactor(4f);
    decoShrubAthura.setChance(8);
    this.addDeco(decoShrubAthura);
    DecoBoulder decoBoulder = new DecoBoulder();
    decoBoulder.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
    decoBoulder.setChance(24);
    decoBoulder.setMaxY(80);
    decoBoulder.setStrengthFactor(2f);
    this.addDeco(decoBoulder);
    DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoBaseBiomeDecorations();
    this.addDeco(decoBaseBiomeDecorations);
    // Grass filler.
    DecoGrass decoGrass = new DecoGrass();
    decoGrass.setMinY(63);
    decoGrass.setMaxY(105);
    decoGrass.setLoops(1);
    this.addDeco(decoGrass);
}
Also used : DecoBaseBiomeDecorations(rtg.api.world.deco.DecoBaseBiomeDecorations) DecoShrub(rtg.api.world.deco.DecoShrub) DecoBoulder(rtg.api.world.deco.DecoBoulder) DecoGrass(rtg.api.world.deco.DecoGrass)

Example 3 with DecoShrub

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

the class RealisticBiomeACDarklands method initDecos.

@Override
public void initDecos() {
    DecoFallenTree decoFallenTree = new DecoFallenTree();
    decoFallenTree.setLogCondition(RANDOM_CHANCE);
    decoFallenTree.setLogConditionChance(8);
    decoFallenTree.setLogBlock(ACBlocks.darklands_oak_wood.getDefaultState());
    decoFallenTree.setLeavesBlock(ACBlocks.darklands_oak_leaves.getDefaultState());
    decoFallenTree.setMinSize(2);
    decoFallenTree.setMaxSize(3);
    this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
    DecoShrub decoShrubCustom = new DecoShrub();
    decoShrubCustom.setLogBlock(ACBlocks.darklands_oak_wood.getDefaultState());
    decoShrubCustom.setLeavesBlock(ACBlocks.darklands_oak_leaves.getDefaultState());
    decoShrubCustom.setMaxY(110);
    decoShrubCustom.setNotEqualsZeroChance(3);
    decoShrubCustom.setStrengthFactor(2f);
    this.addDeco(decoShrubCustom);
    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)

Example 4 with DecoShrub

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

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

the class RealisticBiomeBOPFlowerField method initDecos.

@Override
public void initDecos() {
    // First, let's get a few shrubs in to break things up a bit.
    DecoShrub decoShrub = new DecoShrub();
    decoShrub.setMaxY(110);
    decoShrub.setStrengthFactor(4f);
    decoShrub.setChance(3);
    this.addDeco(decoShrub);
    // Flowers are the most aesthetically important feature of this biome, so let's add those next.
    DecoFlowersRTG decoFlowers1 = new DecoFlowersRTG();
    //Only colourful 1-block-tall flowers. No tulips as BOP has those covered.
    decoFlowers1.setFlowers(new int[] { 0, 1, 2, 3, 8, 9 });
    // Lots and lots of flowers!
    decoFlowers1.setStrengthFactor(12f);
    // We're only bothered about surface flowers here.
    decoFlowers1.setHeightType(DecoFlowersRTG.HeightType.GET_HEIGHT_VALUE);
    this.addDeco(decoFlowers1);
    DecoFlowersRTG decoFlowers2 = new DecoFlowersRTG();
    //Only 2-block-tall flowers.
    decoFlowers2.setFlowers(new int[] { 10, 11, 14, 15 });
    // Not as many of these.
    decoFlowers2.setStrengthFactor(2f);
    decoFlowers2.setChance(3);
    // We're only bothered about surface flowers here.
    decoFlowers2.setHeightType(DecoFlowersRTG.HeightType.GET_HEIGHT_VALUE);
    this.addDeco(decoFlowers2);
    // Not much free space left, so let's give some space to the base biome.
    DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoSingleBiomeDecorations();
    decoBaseBiomeDecorations.setNotEqualsZeroChance(4);
    this.addDeco(decoBaseBiomeDecorations);
    // Grass filler.
    DecoGrass decoGrass = new DecoGrass();
    decoGrass.setMaxY(128);
    decoGrass.setStrengthFactor(24f);
    this.addDeco(decoGrass);
}
Also used : DecoBaseBiomeDecorations(rtg.api.world.deco.DecoBaseBiomeDecorations) DecoFlowersRTG(rtg.api.world.deco.DecoFlowersRTG) DecoSingleBiomeDecorations(rtg.api.world.deco.DecoSingleBiomeDecorations) DecoShrub(rtg.api.world.deco.DecoShrub) DecoGrass(rtg.api.world.deco.DecoGrass)

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