use of rtg.api.world.deco.DecoBoulder 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());
}
use of rtg.api.world.deco.DecoBoulder in project Realistic-Terrain-Generation by Team-RTG.
the class DecoCollectionOcean method boulders.
private DecoBoulder boulders(IBlockState boulderBlock, int chance) {
DecoBoulder decoBoulder = new DecoBoulder();
decoBoulder.setBoulderBlock(boulderBlock);
decoBoulder.setChance(chance);
decoBoulder.setMinY(22);
decoBoulder.setMaxY(58);
decoBoulder.setHeightType(DecoBoulder.HeightType.NEXT_INT);
decoBoulder.setStrengthFactor(3f);
return decoBoulder;
}
use of rtg.api.world.deco.DecoBoulder in project Realistic-Terrain-Generation by Team-RTG.
the class RealisticBiomeBOPEucalyptusForest method initDecos.
@Override
public void initDecos() {
DecoBoulder decoBoulder1 = new DecoBoulder();
decoBoulder1.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
decoBoulder1.setMaxY(80);
decoBoulder1.setChance(12);
decoBoulder1.setStrengthFactor(1f);
DecoBoulder decoBoulder2 = new DecoBoulder();
decoBoulder2.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
decoBoulder2.setMaxY(80);
decoBoulder2.setChance(12);
decoBoulder2.setStrengthFactor(1f);
DecoHelper5050 decoHelper5050 = new DecoHelper5050(decoBoulder1, decoBoulder2);
this.addDeco(decoHelper5050);
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(16);
decoFallenTree.setLogBlock(BlockUtil.getStateLog(3));
decoFallenTree.setLeavesBlock(BlockUtil.getStateLeaf(3));
decoFallenTree.setMinSize(8);
decoFallenTree.setMaxSize(14);
this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoSingleBiomeDecorations();
this.addDeco(decoBaseBiomeDecorations);
}
use of rtg.api.world.deco.DecoBoulder in project Realistic-Terrain-Generation by Team-RTG.
the class RealisticBiomeBOPFen method initDecos.
@Override
public void initDecos() {
DecoBoulder decoBoulder1 = new DecoBoulder();
decoBoulder1.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
decoBoulder1.setMaxY(80);
decoBoulder1.setChance(12);
decoBoulder1.setStrengthFactor(1f);
DecoBoulder decoBoulder2 = new DecoBoulder();
decoBoulder2.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
decoBoulder2.setMaxY(80);
decoBoulder2.setChance(12);
decoBoulder2.setStrengthFactor(1f);
DecoHelper5050 decoHelper5050 = new DecoHelper5050(decoBoulder1, decoBoulder2);
this.addDeco(decoHelper5050);
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(16);
decoFallenTree.setLogBlock(BOPBlocks.log_3.getStateFromMeta(2));
decoFallenTree.setLeavesBlock(Blocks.LEAVES.getDefaultState());
decoFallenTree.setMinSize(3);
decoFallenTree.setMaxSize(5);
DecoFallenTree decoFallenTree2 = new DecoFallenTree();
decoFallenTree2.getDistribution().setNoiseDivisor(100f);
decoFallenTree2.getDistribution().setNoiseFactor(6f);
decoFallenTree2.getDistribution().setNoiseAddend(0.8f);
decoFallenTree2.setLogCondition(NOISE_GREATER_AND_RANDOM_CHANCE);
decoFallenTree2.setLogConditionNoise(0f);
decoFallenTree2.setLogConditionChance(16);
decoFallenTree2.setMaxY(100);
decoFallenTree2.setLogBlock(BlockUtil.getStateLog2(1));
decoFallenTree2.setLeavesBlock(BlockUtil.getStateLeaf(1));
decoFallenTree2.setMinSize(3);
decoFallenTree2.setMaxSize(5);
DecoHelperRandomSplit decoHelperRandomSplit = new DecoHelperRandomSplit();
decoHelperRandomSplit.decos = new DecoBase[] { decoFallenTree, decoFallenTree2 };
decoHelperRandomSplit.chances = new int[] { 4, 1 };
this.addDeco(decoHelperRandomSplit, this.getConfig().ALLOW_LOGS.get());
DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoSingleBiomeDecorations();
this.addDeco(decoBaseBiomeDecorations);
}
use of rtg.api.world.deco.DecoBoulder in project Realistic-Terrain-Generation by Team-RTG.
the class RealisticBiomeBOPConiferousForest method initDecos.
@Override
public void initDecos() {
DecoBoulder decoBoulder = new DecoBoulder();
decoBoulder.setBoulderBlock(Blocks.COBBLESTONE.getDefaultState());
decoBoulder.setChance(16);
decoBoulder.setMaxY(95);
decoBoulder.setStrengthFactor(1f);
this.addDeco(decoBoulder);
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(16);
decoFallenTree.setLogBlock(BOPBlocks.log_1.getStateFromMeta(3));
decoFallenTree.setLeavesBlock(Blocks.LEAVES.getDefaultState());
decoFallenTree.setMinSize(3);
decoFallenTree.setMaxSize(5);
this.addDeco(decoFallenTree, this.getConfig().ALLOW_LOGS.get());
DecoBaseBiomeDecorations decoBaseBiomeDecorations = new DecoSingleBiomeDecorations();
decoBaseBiomeDecorations.setNotEqualsZeroChance(12);
decoBaseBiomeDecorations.setLoops(1);
this.addDeco(decoBaseBiomeDecorations);
}
Aggregations