Search in sources :

Example 6 with DecoFallenTree

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

the class RealisticBiomeBOPHeathland method initDecos.

@Override
public void initDecos() {
    DecoFallenTree decoFallenTree = new DecoFallenTree();
    decoFallenTree.getDistribution().setNoiseDivisor(80f);
    decoFallenTree.getDistribution().setNoiseFactor(60f);
    decoFallenTree.getDistribution().setNoiseAddend(-15f);
    decoFallenTree.setLogCondition(X_DIVIDED_BY_STRENGTH);
    decoFallenTree.setLogConditionNoise(8f);
    decoFallenTree.setLogConditionChance(1);
    decoFallenTree.setLogBlock(Blocks.LOG.getDefaultState());
    decoFallenTree.setLeavesBlock(Blocks.LEAVES.getDefaultState());
    decoFallenTree.setMinSize(3);
    decoFallenTree.setMaxSize(4);
    this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
    DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoSingleBiomeDecorations();
    this.addDeco(decoBaseBiomeDecorations);
}
Also used : DecoBaseBiomeDecorations(rtg.api.world.deco.DecoBaseBiomeDecorations) DecoSingleBiomeDecorations(rtg.api.world.deco.DecoSingleBiomeDecorations) DecoFallenTree(rtg.api.world.deco.DecoFallenTree)

Example 7 with DecoFallenTree

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

Example 8 with DecoFallenTree

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

the class RealisticBiomeBOPLushSwamp method initDecos.

@Override
public void initDecos() {
    DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoSingleBiomeDecorations();
    this.addDeco(decoBaseBiomeDecorations);
    DecoBoulder decoBoulder = new DecoBoulder();
    decoBoulder.setBoulderBlock(Blocks.MOSSY_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(4);
    decoFallenTree.setLogBlock(Blocks.LOG.getDefaultState());
    decoFallenTree.setLeavesBlock(Blocks.LEAVES.getDefaultState());
    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 9 with DecoFallenTree

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

the class RealisticBiomeBOPMysticGrove method initDecos.

@Override
public void initDecos() {
    DecoFallenTree decoFallenTree = new DecoFallenTree();
    decoFallenTree.getDistribution().setNoiseDivisor(80f);
    decoFallenTree.getDistribution().setNoiseFactor(60f);
    decoFallenTree.getDistribution().setNoiseAddend(-15f);
    decoFallenTree.setLogCondition(RANDOM_CHANCE);
    decoFallenTree.setLogConditionChance(12);
    decoFallenTree.setRandomLogBlocks(new IBlockState[] { Blocks.LOG.getDefaultState(), BOPBlocks.log_3.getStateFromMeta(4), BOPBlocks.log_1.getStateFromMeta(5) });
    decoFallenTree.setMinSize(3);
    decoFallenTree.setMaxSize(5);
    this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
    DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoSingleBiomeDecorations();
    this.addDeco(decoBaseBiomeDecorations);
}
Also used : DecoBaseBiomeDecorations(rtg.api.world.deco.DecoBaseBiomeDecorations) DecoSingleBiomeDecorations(rtg.api.world.deco.DecoSingleBiomeDecorations) DecoFallenTree(rtg.api.world.deco.DecoFallenTree)

Example 10 with DecoFallenTree

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

the class RealisticBiomeBOPOasis method initDecos.

@Override
public void initDecos() {
    DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoBaseBiomeDecorations();
    this.addDeco(decoBaseBiomeDecorations);
    DecoFallenTree decoFallenTree = new DecoFallenTree();
    decoFallenTree.getDistribution().setNoiseDivisor(80f);
    decoFallenTree.getDistribution().setNoiseFactor(60f);
    decoFallenTree.getDistribution().setNoiseAddend(-15f);
    decoFallenTree.setLogCondition(RANDOM_CHANCE);
    decoFallenTree.setLogConditionChance(16);
    decoFallenTree.setLogBlock(BOPBlocks.log_1.getStateFromMeta(7));
    decoFallenTree.setLeavesBlock(Blocks.LEAVES.getDefaultState());
    decoFallenTree.setMinSize(3);
    decoFallenTree.setMaxSize(5);
    this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
}
Also used : DecoBaseBiomeDecorations(rtg.api.world.deco.DecoBaseBiomeDecorations) DecoFallenTree(rtg.api.world.deco.DecoFallenTree)

Aggregations

DecoBaseBiomeDecorations (rtg.api.world.deco.DecoBaseBiomeDecorations)31 DecoFallenTree (rtg.api.world.deco.DecoFallenTree)31 DecoSingleBiomeDecorations (rtg.api.world.deco.DecoSingleBiomeDecorations)17 DecoBoulder (rtg.api.world.deco.DecoBoulder)15 DecoShrub (rtg.api.world.deco.DecoShrub)8 DecoGrass (rtg.api.world.deco.DecoGrass)5 DecoHelper5050 (rtg.api.world.deco.helper.DecoHelper5050)4 DecoHelperRandomSplit (rtg.api.world.deco.helper.DecoHelperRandomSplit)4 DecoJungleCacti (rtg.api.world.deco.DecoJungleCacti)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