Search in sources :

Example 1 with DecoBoulder

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

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

the class RealisticBiomeBYGShrubs 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(Blocks.LOG.getDefaultState());
    decoFallenTree.setLeavesBlock(Blocks.LEAVES.getDefaultState());
    decoFallenTree.setMinSize(2);
    decoFallenTree.setMaxSize(4);
    this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
    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) DecoFallenTree(rtg.api.world.deco.DecoFallenTree) DecoBoulder(rtg.api.world.deco.DecoBoulder) DecoGrass(rtg.api.world.deco.DecoGrass)

Example 3 with DecoBoulder

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

the class RealisticBiomeBOPSeasonalForest 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(RANDOM_CHANCE);
    decoFallenTree.setLogConditionChance(6);
    decoFallenTree.setRandomLogBlocks(new IBlockState[] { BlockUtil.getStateLog2(1), Blocks.LOG.getDefaultState(), BlockUtil.getStateLog(2) });
    decoFallenTree.setMinSize(3);
    decoFallenTree.setMaxSize(4);
    this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
}
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 4 with DecoBoulder

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

the class RealisticBiomeBOPShield 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 decoFallenTree1 = new DecoFallenTree();
    decoFallenTree1.getDistribution().setNoiseDivisor(80f);
    decoFallenTree1.getDistribution().setNoiseFactor(60f);
    decoFallenTree1.getDistribution().setNoiseAddend(-15f);
    decoFallenTree1.setLogCondition(RANDOM_CHANCE);
    decoFallenTree1.setLogConditionNoise(0f);
    decoFallenTree1.setLogConditionChance(6);
    decoFallenTree1.setMaxY(100);
    decoFallenTree1.setLogBlock(BOPBlocks.log_2.getStateFromMeta(6));
    decoFallenTree1.setLeavesBlock(Blocks.LEAVES.getDefaultState());
    decoFallenTree1.setMinSize(3);
    decoFallenTree1.setMaxSize(4);
    DecoFallenTree decoFallenTree2 = new DecoFallenTree();
    decoFallenTree2.getDistribution().setNoiseDivisor(80f);
    decoFallenTree2.getDistribution().setNoiseFactor(60f);
    decoFallenTree2.getDistribution().setNoiseAddend(-15f);
    decoFallenTree2.setLogCondition(RANDOM_CHANCE);
    decoFallenTree2.setLogConditionNoise(0f);
    decoFallenTree2.setLogConditionChance(6);
    decoFallenTree2.setMaxY(100);
    decoFallenTree2.setLogBlock(BlockUtil.getStateLog(1));
    decoFallenTree2.setLeavesBlock(BlockUtil.getStateLeaf(1));
    decoFallenTree2.setMinSize(3);
    decoFallenTree2.setMaxSize(4);
    DecoHelper5050 decoHelperHelper5050 = new DecoHelper5050(decoFallenTree1, decoFallenTree2);
    this.addDeco(decoHelperHelper5050, 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 5 with DecoBoulder

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

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