use of rtg.api.world.gen.feature.tree.rtg.TreeRTGSalixMyrtilloides in project Realistic-Terrain-Generation by Team-RTG.
the class RealisticBiomeVanillaSwamplandM method initDecos.
@Override
public void initDecos() {
TreeRTG myrtilloidesTree = new TreeRTGSalixMyrtilloides();
myrtilloidesTree.setLogBlock(Blocks.LOG.getDefaultState());
myrtilloidesTree.setLeavesBlock(Blocks.LEAVES.getDefaultState());
this.addTree(myrtilloidesTree);
DecoTree decoTrees = new DecoTree(myrtilloidesTree);
decoTrees.setStrengthNoiseFactorXForLoops(true);
decoTrees.setStrengthFactorForLoops(1f);
decoTrees.getDistribution().setNoiseDivisor(80f);
decoTrees.getDistribution().setNoiseFactor(60f);
decoTrees.getDistribution().setNoiseAddend(-15f);
decoTrees.setTreeType(DecoTree.TreeType.RTG_TREE);
decoTrees.setTreeCondition(DecoTree.TreeCondition.RANDOM_CHANCE);
decoTrees.setTreeConditionChance(12);
decoTrees.setMaxY(100);
this.addDeco(decoTrees);
TreeRTG ponderosaTree = new TreeRTGPinusPonderosa();
ponderosaTree.setLogBlock(Blocks.LOG.getDefaultState());
ponderosaTree.setLeavesBlock(Blocks.LEAVES.getDefaultState());
ponderosaTree.setMinTrunkSize(3);
ponderosaTree.setMaxTrunkSize(6);
ponderosaTree.setMinCrownSize(6);
ponderosaTree.setMaxCrownSize(14);
ponderosaTree.setNoLeaves(true);
this.addTree(ponderosaTree);
DecoTree deadPineTree = new DecoTree(ponderosaTree);
deadPineTree.setTreeType(DecoTree.TreeType.RTG_TREE);
deadPineTree.setTreeCondition(DecoTree.TreeCondition.RANDOM_CHANCE);
deadPineTree.setTreeConditionChance(18);
deadPineTree.setMaxY(100);
this.addDeco(deadPineTree);
DecoShrub decoShrub = new DecoShrub();
decoShrub.setMaxY(100);
decoShrub.setStrengthFactor(3f);
this.addDeco(decoShrub);
DecoFallenTree decoFallenTree = new DecoFallenTree();
decoFallenTree.getDistribution().setNoiseDivisor(80f);
decoFallenTree.getDistribution().setNoiseFactor(60f);
decoFallenTree.getDistribution().setNoiseAddend(-15f);
decoFallenTree.setLogCondition(DecoFallenTree.LogCondition.NOISE_GREATER_AND_RANDOM_CHANCE);
decoFallenTree.setLogConditionNoise(0f);
decoFallenTree.setLogConditionChance(6);
decoFallenTree.setLogBlock(BlockUtil.getStateLog2(1));
decoFallenTree.setLeavesBlock(BlockUtil.getStateLeaf2(1));
decoFallenTree.setMinSize(3);
decoFallenTree.setMaxSize(6);
this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoBaseBiomeDecorations();
this.addDeco(decoBaseBiomeDecorations);
DecoPumpkin decoPumpkin = new DecoPumpkin();
decoPumpkin.setMaxY(90);
decoPumpkin.setRandomType(DecoPumpkin.RandomType.X_DIVIDED_BY_STRENGTH);
decoPumpkin.setRandomFloat(50f);
this.addDeco(decoPumpkin);
DecoGrass decoGrass = new DecoGrass();
decoGrass.setMaxY(128);
decoGrass.setStrengthFactor(12f);
this.addDeco(decoGrass);
}
use of rtg.api.world.gen.feature.tree.rtg.TreeRTGSalixMyrtilloides in project Realistic-Terrain-Generation by Team-RTG.
the class RealisticBiomeBYGWillowSwamps method initDecos.
@Override
public void initDecos() {
DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoBaseBiomeDecorations();
decoBaseBiomeDecorations.setMaxY(82);
this.addDeco(decoBaseBiomeDecorations);
TreeRTG myrtilloidesTree = new TreeRTGSalixMyrtilloides();
myrtilloidesTree.setLogBlock(Blocks.LOG.getDefaultState());
myrtilloidesTree.setLeavesBlock(Blocks.LEAVES.getDefaultState());
this.addTree(myrtilloidesTree);
DecoTree decoTrees = new DecoTree(myrtilloidesTree);
decoTrees.getDistribution().setNoiseDivisor(80f);
decoTrees.getDistribution().setNoiseFactor(60f);
decoTrees.getDistribution().setNoiseAddend(-15f);
decoTrees.setTreeType(DecoTree.TreeType.RTG_TREE);
decoTrees.setTreeCondition(DecoTree.TreeCondition.NOISE_GREATER_AND_RANDOM_CHANCE);
decoTrees.setTreeConditionNoise(0f);
decoTrees.setTreeConditionChance(16);
decoTrees.setMaxY(70);
this.addDeco(decoTrees);
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(6);
decoFallenTree.setLogBlock(BlockUtil.getStateLog2(1));
decoFallenTree.setLeavesBlock(BlockUtil.getStateLeaf2(1));
decoFallenTree.setMinSize(3);
decoFallenTree.setMaxSize(6);
decoFallenTree.setMaxY(76);
this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
TreeRTG deadWillowTree = new TreeRTGSalixMyrtilloides();
deadWillowTree.setLogBlock(Blocks.LOG.getDefaultState());
deadWillowTree.setLeavesBlock(Blocks.LEAVES.getDefaultState());
deadWillowTree.setNoLeaves(true);
this.addTree(deadWillowTree);
DecoTree deadWillow = new DecoTree(deadWillowTree);
deadWillow.setTreeType(DecoTree.TreeType.RTG_TREE);
deadWillow.setTreeCondition(DecoTree.TreeCondition.RANDOM_CHANCE);
deadWillow.setTreeConditionChance(18);
deadWillow.setMaxY(84);
this.addDeco(deadWillow);
DecoShrub decoShrub = new DecoShrub();
decoShrub.setMaxY(88);
decoShrub.setStrengthFactor(6f);
this.addDeco(decoShrub);
DecoShrub decoShrubBYG = new DecoShrub();
decoShrubBYG.setLogBlock(willowLogBlock);
decoShrubBYG.setLeavesBlock(willowLeavesBlock);
decoShrubBYG.setMaxY(88);
decoShrubBYG.setStrengthFactor(3f);
this.addDeco(decoShrubBYG);
}
use of rtg.api.world.gen.feature.tree.rtg.TreeRTGSalixMyrtilloides in project Realistic-Terrain-Generation by Team-RTG.
the class RealisticBiomeVanillaSwampland method initDecos.
@Override
public void initDecos() {
TreeRTG myrtilloidesTree = new TreeRTGSalixMyrtilloides();
myrtilloidesTree.setLogBlock(Blocks.LOG.getDefaultState());
myrtilloidesTree.setLeavesBlock(Blocks.LEAVES.getDefaultState());
this.addTree(myrtilloidesTree);
DecoTree decoTrees = new DecoTree(myrtilloidesTree);
decoTrees.setStrengthNoiseFactorXForLoops(true);
decoTrees.setStrengthFactorForLoops(1f);
decoTrees.getDistribution().setNoiseDivisor(80f);
decoTrees.getDistribution().setNoiseFactor(60f);
decoTrees.getDistribution().setNoiseAddend(-15f);
decoTrees.setTreeType(DecoTree.TreeType.RTG_TREE);
decoTrees.setTreeCondition(DecoTree.TreeCondition.RANDOM_CHANCE);
decoTrees.setTreeConditionChance(12);
decoTrees.setMaxY(70);
this.addDeco(decoTrees);
TreeRTG ponderosaTree = new TreeRTGPinusPonderosa();
ponderosaTree.setLogBlock(Blocks.LOG.getDefaultState());
ponderosaTree.setLeavesBlock(Blocks.LEAVES.getDefaultState());
ponderosaTree.setMinTrunkSize(3);
ponderosaTree.setMaxTrunkSize(6);
ponderosaTree.setMinCrownSize(6);
ponderosaTree.setMaxCrownSize(14);
ponderosaTree.setNoLeaves(true);
this.addTree(ponderosaTree);
DecoTree deadPineTree = new DecoTree(ponderosaTree);
deadPineTree.setTreeType(DecoTree.TreeType.RTG_TREE);
deadPineTree.setTreeCondition(DecoTree.TreeCondition.RANDOM_CHANCE);
deadPineTree.setTreeConditionChance(18);
deadPineTree.setMaxY(90);
this.addDeco(deadPineTree);
DecoShrub decoShrub = new DecoShrub();
decoShrub.setMaxY(100);
decoShrub.setStrengthFactor(3f);
this.addDeco(decoShrub);
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(6);
decoFallenTree.setLogBlock(BlockUtil.getStateLog2(1));
decoFallenTree.setLeavesBlock(BlockUtil.getStateLeaf2(1));
decoFallenTree.setMinSize(3);
decoFallenTree.setMaxSize(6);
this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoBaseBiomeDecorations();
this.addDeco(decoBaseBiomeDecorations);
DecoPumpkin decoPumpkin = new DecoPumpkin();
decoPumpkin.setMaxY(90);
decoPumpkin.setRandomType(DecoPumpkin.RandomType.X_DIVIDED_BY_STRENGTH);
decoPumpkin.setRandomFloat(50f);
this.addDeco(decoPumpkin);
DecoGrass decoGrass = new DecoGrass();
decoGrass.setMaxY(100);
decoGrass.setStrengthFactor(12f);
this.addDeco(decoGrass);
}
Aggregations