Search in sources :

Example 26 with DecoSingleBiomeDecorations

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

the class RealisticBiomeBOPFen method initDecos.

@Override
public void initDecos() {
    DecoBoulder decoBoulder1 = new DecoBoulder();
    decoBoulder1.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
    decoBoulder1.setMaxY(80);
    decoBoulder1.setChance(12);
    decoBoulder1.setStrengthFactor(1f);
    DecoBoulder decoBoulder2 = new DecoBoulder();
    decoBoulder2.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
    decoBoulder2.setMaxY(80);
    decoBoulder2.setChance(12);
    decoBoulder2.setStrengthFactor(1f);
    DecoHelper5050 decoHelper5050 = new DecoHelper5050(decoBoulder1, decoBoulder2);
    this.addDeco(decoHelper5050);
    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(16);
    decoFallenTree.setLogBlock(BOPBlocks.log_3.getStateFromMeta(2));
    decoFallenTree.setLeavesBlock(Blocks.LEAVES.getDefaultState());
    decoFallenTree.setMinSize(3);
    decoFallenTree.setMaxSize(5);
    DecoFallenTree decoFallenTree2 = new DecoFallenTree();
    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(16);
    decoFallenTree2.setMaxY(100);
    decoFallenTree2.setLogBlock(BlockUtil.getStateLog2(1));
    decoFallenTree2.setLeavesBlock(BlockUtil.getStateLeaf(1));
    decoFallenTree2.setMinSize(3);
    decoFallenTree2.setMaxSize(5);
    DecoHelperRandomSplit decoHelperRandomSplit = new DecoHelperRandomSplit();
    decoHelperRandomSplit.decos = new DecoBase[] { decoFallenTree, decoFallenTree2 };
    decoHelperRandomSplit.chances = new int[] { 4, 1 };
    this.addDeco(decoHelperRandomSplit, this.getConfig().ALLOW_LOGS.get());
    DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoSingleBiomeDecorations();
    this.addDeco(decoBaseBiomeDecorations);
}
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) DecoHelperRandomSplit(rtg.api.world.deco.helper.DecoHelperRandomSplit) DecoBoulder(rtg.api.world.deco.DecoBoulder)

Example 27 with DecoSingleBiomeDecorations

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

the class RealisticBiomeBOPAlps 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)

Example 28 with DecoSingleBiomeDecorations

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

Example 29 with DecoSingleBiomeDecorations

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

the class RealisticBiomeBOPFlowerIsland 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)

Example 30 with DecoSingleBiomeDecorations

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

the class RealisticBiomeBOPBog 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