use of rtg.api.world.gen.feature.tree.rtg.TreeRTGBetulaPapyrifera in project Realistic-Terrain-Generation by Team-RTG.
the class RealisticBiomeBOPLandOfLakes method initDecos.
@Override
public void initDecos() {
TreeRTG birchTree = new TreeRTGBetulaPapyrifera();
birchTree.setLogBlock(BlockUtil.getStateLog(2));
birchTree.setLeavesBlock(BlockUtil.getStateLeaf(2));
birchTree.setMinTrunkSize(4);
birchTree.setMaxTrunkSize(10);
birchTree.setMinCrownSize(8);
birchTree.setMaxCrownSize(19);
this.addTree(birchTree);
DecoTree birchTrees = new DecoTree(birchTree);
birchTrees.setStrengthFactorForLoops(9f);
birchTrees.setTreeType(DecoTree.TreeType.RTG_TREE);
birchTrees.getDistribution().setNoiseDivisor(100f);
birchTrees.getDistribution().setNoiseFactor(6f);
birchTrees.getDistribution().setNoiseAddend(0.8f);
birchTrees.setTreeCondition(DecoTree.TreeCondition.NOISE_GREATER_AND_RANDOM_CHANCE);
birchTrees.setTreeConditionChance(1);
birchTrees.setTreeConditionNoise(0f);
birchTrees.setMaxY(120);
TreeRTG sitchensisTree = new TreeRTGPiceaSitchensis();
sitchensisTree.setLogBlock(BlockUtil.getStateLog(1));
sitchensisTree.setLeavesBlock(BlockUtil.getStateLeaf(1));
sitchensisTree.setMinTrunkSize(4);
sitchensisTree.setMaxTrunkSize(9);
sitchensisTree.setMinCrownSize(5);
sitchensisTree.setMaxCrownSize(14);
this.addTree(sitchensisTree);
DecoTree smallPine = new DecoTree(sitchensisTree);
smallPine.setStrengthFactorForLoops(9f);
smallPine.setTreeType(DecoTree.TreeType.RTG_TREE);
smallPine.getDistribution().setNoiseDivisor(100f);
smallPine.getDistribution().setNoiseFactor(6f);
smallPine.getDistribution().setNoiseAddend(0.8f);
smallPine.setTreeCondition(DecoTree.TreeCondition.NOISE_GREATER_AND_RANDOM_CHANCE);
smallPine.setTreeConditionChance(1);
smallPine.setTreeConditionNoise(0f);
smallPine.setMaxY(120);
DecoHelper5050 decoHelper5050 = new DecoHelper5050(birchTrees, smallPine);
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(12);
decoFallenTree.setRandomLogBlocks(new IBlockState[] { Blocks.LOG.getDefaultState(), BlockUtil.getStateLog(1), BlockUtil.getStateLog(2) });
decoFallenTree.setMinSize(8);
decoFallenTree.setMaxSize(12);
this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
DecoShrub decoShrub = new DecoShrub();
decoShrub.setMaxY(110);
decoShrub.setStrengthFactor(3f);
this.addDeco(decoShrub);
DecoBoulder decoBoulder = new DecoBoulder();
decoBoulder.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
decoBoulder.setMaxY(80);
decoBoulder.setChance(12);
decoBoulder.setStrengthFactor(1f);
this.addDeco(decoBoulder);
DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoSingleBiomeDecorations();
this.addDeco(decoBaseBiomeDecorations);
}
use of rtg.api.world.gen.feature.tree.rtg.TreeRTGBetulaPapyrifera in project Realistic-Terrain-Generation by Team-RTG.
the class DecoCollectionBirchForest method tallBirchTrees.
private DecoTree tallBirchTrees() {
TreeRTG birchTree = new TreeRTGBetulaPapyrifera().setLogBlock(BlockUtil.getStateLog(2)).setLeavesBlock(BlockUtil.getStateLeaf(2)).setMinTrunkSize(4).setMaxTrunkSize(10).setMinCrownSize(8).setMaxCrownSize(19);
this.addTree(birchTree);
return new DecoTree(birchTree).setStrengthFactorForLoops(3f).setTreeType(DecoTree.TreeType.RTG_TREE).setTreeCondition(DecoTree.TreeCondition.ALWAYS_GENERATE).setMaxY(100);
}
use of rtg.api.world.gen.feature.tree.rtg.TreeRTGBetulaPapyrifera in project Realistic-Terrain-Generation by Team-RTG.
the class RealisticBiomeVanillaBirchForestM method initDecos.
@Override
public void initDecos() {
TreeRTG tallBirch = new TreeRTGBetulaPapyrifera();
tallBirch.setLogBlock(BlockUtil.getStateLog(2));
tallBirch.setLeavesBlock(BlockUtil.getStateLeaf(2));
tallBirch.setMinTrunkSize(16);
tallBirch.setMaxTrunkSize(23);
tallBirch.setMinCrownSize(4);
tallBirch.setMaxCrownSize(11);
this.addTree(tallBirch);
DecoTree superTallBirch = new DecoTree(tallBirch);
superTallBirch.setStrengthFactorForLoops(16f);
superTallBirch.setStrengthNoiseFactorForLoops(true);
superTallBirch.setTreeType(DecoTree.TreeType.RTG_TREE);
superTallBirch.getDistribution().setNoiseDivisor(80f);
superTallBirch.getDistribution().setNoiseFactor(60f);
superTallBirch.getDistribution().setNoiseAddend(-15f);
superTallBirch.setTreeCondition(DecoTree.TreeCondition.ALWAYS_GENERATE);
superTallBirch.setMaxY(100);
this.addDeco(superTallBirch);
DecoLargeFernDoubleTallgrass decoDoublePlants = new DecoLargeFernDoubleTallgrass();
decoDoublePlants.setMaxY(128);
decoDoublePlants.setStrengthFactor(8f);
this.addDeco(decoDoublePlants);
DecoGrass decoGrass = new DecoGrass();
decoGrass.setMaxY(128);
decoGrass.setStrengthFactor(24f);
this.addDeco(decoGrass);
DecoFallenTree decoFallenTree = new DecoFallenTree();
decoFallenTree.setLogCondition(RANDOM_CHANCE);
decoFallenTree.setLogConditionChance(20);
decoFallenTree.setLogBlock(BlockUtil.getStateLog(2));
decoFallenTree.setLeavesBlock(BlockUtil.getStateLeaf(2));
decoFallenTree.setMinSize(3);
decoFallenTree.setMaxSize(6);
this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
DecoShrub decoShrub = new DecoShrub();
decoShrub.setMaxY(110);
decoShrub.setStrengthFactor(2f);
this.addDeco(decoShrub);
}
use of rtg.api.world.gen.feature.tree.rtg.TreeRTGBetulaPapyrifera in project Realistic-Terrain-Generation by Team-RTG.
the class RealisticBiomeMFMithwoodForest method initDecos.
@Override
public void initDecos() {
TreeRTG megaMithwood = new TreeRTGPinusNigra();
megaMithwood.setLogBlock(mithwoodLogBlock);
megaMithwood.setLeavesBlock(mithwoodLeavesBlock);
megaMithwood.setMinTrunkSize(18);
megaMithwood.setMaxTrunkSize(27);
megaMithwood.setMinCrownSize(7);
megaMithwood.setMaxCrownSize(10);
this.addTree(megaMithwood);
DecoTree RTGMithwood = new DecoTree(megaMithwood);
RTGMithwood.setStrengthFactorForLoops(1f);
RTGMithwood.setStrengthNoiseFactorXForLoops(true);
RTGMithwood.getDistribution().setNoiseDivisor(100f);
RTGMithwood.getDistribution().setNoiseFactor(6f);
RTGMithwood.getDistribution().setNoiseAddend(0.8f);
RTGMithwood.setTreeType(DecoTree.TreeType.RTG_TREE);
RTGMithwood.setTreeCondition(DecoTree.TreeCondition.RANDOM_CHANCE);
RTGMithwood.setTreeConditionChance(12);
RTGMithwood.setMaxY(100);
this.addDeco(RTGMithwood);
TreeRTG megaOak = new TreeRTGPinusNigra();
megaOak.setLogBlock(Blocks.LOG.getDefaultState());
megaOak.setLeavesBlock(Blocks.LEAVES.getDefaultState());
megaOak.setMinTrunkSize(18);
megaOak.setMaxTrunkSize(27);
megaOak.setMinCrownSize(7);
megaOak.setMaxCrownSize(10);
this.addTree(megaOak);
DecoTree RTGOak = new DecoTree(megaOak);
RTGOak.setStrengthFactorForLoops(4f);
RTGOak.setStrengthNoiseFactorXForLoops(true);
RTGOak.getDistribution().setNoiseDivisor(100f);
RTGOak.getDistribution().setNoiseFactor(6f);
RTGOak.getDistribution().setNoiseAddend(0.8f);
RTGOak.setTreeType(DecoTree.TreeType.RTG_TREE);
RTGOak.setTreeCondition(DecoTree.TreeCondition.RANDOM_CHANCE);
RTGOak.setTreeConditionChance(12);
RTGOak.setMaxY(100);
this.addDeco(RTGOak);
TreeRTG megaBirch = new TreeRTGBetulaPapyrifera();
megaBirch.setLogBlock(BlockUtil.getStateLog(2));
megaBirch.setLeavesBlock(BlockUtil.getStateLeaf(2));
megaBirch.setMinTrunkSize(4);
megaBirch.setMaxTrunkSize(10);
megaBirch.setMinCrownSize(8);
megaBirch.setMaxCrownSize(19);
this.addTree(megaBirch);
DecoTree RTGBirch = new DecoTree(megaBirch);
RTGBirch.setStrengthFactorForLoops(2f);
RTGBirch.setTreeType(DecoTree.TreeType.RTG_TREE);
RTGBirch.setTreeCondition(DecoTree.TreeCondition.RANDOM_CHANCE);
RTGBirch.setTreeConditionChance(24);
RTGBirch.setMaxY(100);
this.addDeco(RTGBirch);
TreeRTG megaSpruce = new TreeRTGPinusPonderosa();
megaSpruce.setLogBlock(BlockUtil.getStateLog(1));
megaSpruce.setLeavesBlock(BlockUtil.getStateLeaf(1));
megaSpruce.setMinTrunkSize(11);
megaSpruce.setMaxTrunkSize(21);
megaSpruce.setMinCrownSize(15);
megaSpruce.setMaxCrownSize(29);
this.addTree(megaSpruce);
DecoTree RTGSpruce = new DecoTree(megaSpruce);
RTGSpruce.setStrengthFactorForLoops(2f);
RTGSpruce.setStrengthNoiseFactorForLoops(true);
RTGSpruce.setTreeType(DecoTree.TreeType.RTG_TREE);
RTGSpruce.getDistribution().setNoiseDivisor(80f);
RTGSpruce.getDistribution().setNoiseFactor(60f);
RTGSpruce.getDistribution().setNoiseAddend(-15f);
RTGSpruce.setTreeCondition(DecoTree.TreeCondition.RANDOM_CHANCE);
RTGSpruce.setTreeConditionNoise(0f);
RTGSpruce.setTreeConditionChance(24);
RTGSpruce.setMaxY(140);
this.addDeco(RTGSpruce);
DecoShrub decoShrubMithwood = new DecoShrub();
decoShrubMithwood.setLogBlock(mithwoodLogBlock);
decoShrubMithwood.setLeavesBlock(mithwoodLeavesBlock);
decoShrubMithwood.setMaxY(100);
decoShrubMithwood.setStrengthFactor(1f);
decoShrubMithwood.setChance(2);
this.addDeco(decoShrubMithwood);
DecoShrub decoShrub = new DecoShrub();
decoShrub.setMaxY(100);
decoShrub.setStrengthFactor(2f);
decoShrub.setChance(4);
this.addDeco(decoShrub);
DecoFlowersRTG decoFlowers1 = new DecoFlowersRTG();
decoFlowers1.setFlowers(new int[] { 1, 2, 3, 6, 7, 8 });
decoFlowers1.setStrengthFactor(2f);
decoFlowers1.setHeightType(DecoFlowersRTG.HeightType.GET_HEIGHT_VALUE);
this.addDeco(decoFlowers1);
DecoFlowersRTG decoFlowers2 = new DecoFlowersRTG();
decoFlowers2.setFlowers(new int[] { 11, 12, 13, 14 });
decoFlowers2.setStrengthFactor(1f);
decoFlowers2.setChance(1);
decoFlowers2.setHeightType(DecoFlowersRTG.HeightType.GET_HEIGHT_VALUE);
this.addDeco(decoFlowers2);
DecoBoulder decoBoulder = new DecoBoulder();
decoBoulder.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
decoBoulder.setChance(2);
decoBoulder.setMaxY(100);
decoBoulder.setStrengthFactor(2f);
this.addDeco(decoBoulder);
DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoBaseBiomeDecorations();
decoBaseBiomeDecorations.setMaxY(100);
decoBaseBiomeDecorations.setNotEqualsZeroChance(8);
this.addDeco(decoBaseBiomeDecorations);
DecoFallenTree decoFallenMithwoodTree = new DecoFallenTree();
decoFallenMithwoodTree.getDistribution().setNoiseDivisor(100f);
decoFallenMithwoodTree.getDistribution().setNoiseFactor(6f);
decoFallenMithwoodTree.getDistribution().setNoiseAddend(0.8f);
decoFallenMithwoodTree.setLogCondition(DecoFallenTree.LogCondition.NOISE_GREATER_AND_RANDOM_CHANCE);
decoFallenMithwoodTree.setLogConditionNoise(0f);
decoFallenMithwoodTree.setLogConditionChance(24);
decoFallenMithwoodTree.setLogBlock(mithwoodLogBlock);
decoFallenMithwoodTree.setLeavesBlock(mithwoodLeavesBlock);
decoFallenMithwoodTree.setMinSize(3);
decoFallenMithwoodTree.setMaxSize(6);
this.addDeco(decoFallenMithwoodTree, this.getConfig().ALLOW_LOGS.get());
DecoFallenTree decoFallenOak = new DecoFallenTree();
decoFallenOak.setLogCondition(RANDOM_CHANCE);
decoFallenOak.setLogConditionChance(8);
decoFallenOak.setMaxY(100);
decoFallenOak.setLogBlock(Blocks.LOG.getDefaultState());
decoFallenOak.setLeavesBlock(Blocks.LEAVES.getDefaultState());
decoFallenOak.setMinSize(3);
decoFallenOak.setMaxSize(6);
this.addDeco(decoFallenOak, this.getConfig().ALLOW_LOGS.get());
DecoFallenTree decoFallenBirch = new DecoFallenTree();
decoFallenBirch.setLogCondition(RANDOM_CHANCE);
decoFallenBirch.setLogConditionChance(8);
decoFallenBirch.setMaxY(100);
decoFallenBirch.setLogBlock(BlockUtil.getStateLog(2));
decoFallenBirch.setLeavesBlock(BlockUtil.getStateLeaf(2));
decoFallenBirch.setMinSize(3);
decoFallenBirch.setMaxSize(6);
DecoFallenTree decoFallenSpruce = new DecoFallenTree();
decoFallenSpruce.setLogCondition(RANDOM_CHANCE);
decoFallenSpruce.setLogConditionChance(8);
decoFallenSpruce.setMaxY(100);
decoFallenSpruce.setLogBlock(BlockUtil.getStateLog(1));
decoFallenSpruce.setLeavesBlock(BlockUtil.getStateLeaf(1));
decoFallenSpruce.setMinSize(3);
decoFallenSpruce.setMaxSize(6);
DecoHelper5050 decoFallenTree = new DecoHelper5050(decoFallenBirch, decoFallenSpruce);
this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
DecoGrass decoGrass = new DecoGrass();
decoGrass.setMaxY(128);
decoGrass.setStrengthFactor(24f);
this.addDeco(decoGrass);
}
Aggregations