Search in sources :

Example 16 with DecoFallenTree

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

the class RealisticBiomeMCMLoessPlateau 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(1));
    decoFallenTree.setLeavesBlock(BlockUtil.getStateLeaf(1));
    decoFallenTree.setMinSize(3);
    decoFallenTree.setMaxSize(6);
    this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
    DecoShrub decoShrub = new DecoShrub();
    decoShrub.setLogBlock(BlockUtil.getStateLog(1));
    decoShrub.setLeavesBlock(BlockUtil.getStateLeaf(1));
    decoShrub.setMaxY(90);
    decoShrub.setStrengthFactor(2f);
    decoShrub.setChance(12);
    this.addDeco(decoShrub);
    DecoBoulder decoBoulder = new DecoBoulder();
    decoBoulder.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
    decoBoulder.setChance(30);
    decoBoulder.setMaxY(80);
    decoBoulder.setStrengthFactor(2f);
    this.addDeco(decoBoulder);
    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) DecoBoulder(rtg.api.world.deco.DecoBoulder)

Example 17 with DecoFallenTree

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

the class RealisticBiomeMCMWarmTaiga 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(1));
    decoFallenTree.setLeavesBlock(BlockUtil.getStateLeaf(1));
    decoFallenTree.setMinSize(3);
    decoFallenTree.setMaxSize(6);
    this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
    DecoShrub decoShrub = new DecoShrub();
    decoShrub.setLogBlock(BlockUtil.getStateLog(1));
    decoShrub.setLeavesBlock(BlockUtil.getStateLeaf(1));
    decoShrub.setMaxY(90);
    decoShrub.setStrengthFactor(2f);
    decoShrub.setChance(12);
    this.addDeco(decoShrub);
    DecoBoulder decoBoulder = new DecoBoulder();
    decoBoulder.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
    decoBoulder.setChance(30);
    decoBoulder.setMaxY(80);
    decoBoulder.setStrengthFactor(2f);
    this.addDeco(decoBoulder);
    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) DecoBoulder(rtg.api.world.deco.DecoBoulder)

Example 18 with DecoFallenTree

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

the class RealisticBiomeVanillaJungleEdge method initDecos.

@Override
public void initDecos() {
    DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoBaseBiomeDecorations();
    this.addDeco(decoBaseBiomeDecorations);
    DecoFallenTree decoFallenTree = new DecoFallenTree();
    decoFallenTree.setLoops(1);
    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(6);
    decoFallenTree.setLogBlock(BlockUtil.getStateLog(3));
    decoFallenTree.setLeavesBlock(BlockUtil.getStateLeaf(3));
    decoFallenTree.setMinSize(3);
    decoFallenTree.setMaxSize(6);
    this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
}
Also used : DecoBaseBiomeDecorations(rtg.api.world.deco.DecoBaseBiomeDecorations) DecoFallenTree(rtg.api.world.deco.DecoFallenTree)

Example 19 with DecoFallenTree

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

the class RealisticBiomeVanillaJungleEdgeM method initDecos.

@Override
public void initDecos() {
    DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoBaseBiomeDecorations();
    this.addDeco(decoBaseBiomeDecorations);
    DecoFallenTree decoFallenTree = new DecoFallenTree();
    decoFallenTree.setLoops(1);
    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(6);
    decoFallenTree.setLogBlock(BlockUtil.getStateLog(3));
    decoFallenTree.setLeavesBlock(BlockUtil.getStateLeaf(3));
    decoFallenTree.setMinSize(3);
    decoFallenTree.setMaxSize(6);
    this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
}
Also used : DecoBaseBiomeDecorations(rtg.api.world.deco.DecoBaseBiomeDecorations) DecoFallenTree(rtg.api.world.deco.DecoFallenTree)

Example 20 with DecoFallenTree

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

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