Search in sources :

Example 1 with DecoJungleCacti

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

the class RealisticBiomeBOPLushDesert 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(NOISE_GREATER_AND_RANDOM_CHANCE);
    decoFallenTree.setLogConditionNoise(0f);
    decoFallenTree.setLogConditionChance(12);
    decoFallenTree.setRandomLogBlocks(new IBlockState[] { Blocks.LOG2.getStateFromMeta(1), BOPBlocks.log_3.getStateFromMeta(2), Blocks.LOG.getDefaultState() });
    decoFallenTree.setMinSize(3);
    decoFallenTree.setMaxSize(5);
    this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
    DecoJungleCacti decoJungleCacti = new DecoJungleCacti();
    decoJungleCacti.setStrengthFactor(8f);
    decoJungleCacti.setMaxY(110);
    this.addDeco(decoJungleCacti, this.getConfig().ALLOW_CACTUS.get());
}
Also used : DecoBaseBiomeDecorations(rtg.api.world.deco.DecoBaseBiomeDecorations) DecoJungleCacti(rtg.api.world.deco.DecoJungleCacti) DecoSingleBiomeDecorations(rtg.api.world.deco.DecoSingleBiomeDecorations) DecoFallenTree(rtg.api.world.deco.DecoFallenTree) DecoBoulder(rtg.api.world.deco.DecoBoulder)

Aggregations

DecoBaseBiomeDecorations (rtg.api.world.deco.DecoBaseBiomeDecorations)1 DecoBoulder (rtg.api.world.deco.DecoBoulder)1 DecoFallenTree (rtg.api.world.deco.DecoFallenTree)1 DecoJungleCacti (rtg.api.world.deco.DecoJungleCacti)1 DecoSingleBiomeDecorations (rtg.api.world.deco.DecoSingleBiomeDecorations)1