Finished the forced decorators for vanilla biomes

This commit is contained in:
Matt Caughey 2014-03-15 16:00:00 -04:00
parent e017c2e752
commit d22dbc4a94
14 changed files with 147 additions and 12 deletions

View File

@ -13,6 +13,7 @@ public class BirchForestForcedDecorator extends ForcedDecorator
{
this.bopWorldFeatures.poisonIvyPerChunk = 3;
this.bopWorldFeatures.cloverPatchesPerChunk = 15;
this.bopWorldFeatures.leafPilesPerChunk = 5;
}
@Override

View File

@ -9,6 +9,6 @@ public class DesertForcedDecorator extends ForcedDecorator
{
public DesertForcedDecorator()
{
this.bopWorldFeatures.tinyCactiPerChunk = 10;
}
}

View File

@ -1,7 +1,9 @@
package biomesoplenty.common.world.forceddecorators;
import java.util.HashMap;
import java.util.Random;
import biomesoplenty.api.BOPBlockHelper;
import biomesoplenty.common.world.decoration.IBOPDecoration;
import biomesoplenty.common.world.features.WorldGenBOPFlora;
@ -9,6 +11,18 @@ public class ExtremeHillsForcedDecorator extends ForcedDecorator
{
public ExtremeHillsForcedDecorator()
{
this.bopWorldFeatures.bopFlowersPerChunk = 3;
this.bopWorldFeatures.shrubsPerChunk = 1;
this.bopWorldFeatures.leafPilesPerChunk = 3;
}
@Override
public HashMap<WorldGenBOPFlora, Integer> getWeightedWorldGenForBOPFlowers()
{
HashMap<WorldGenBOPFlora, Integer> flowerMap = new HashMap();
flowerMap.put(new WorldGenBOPFlora(BOPBlockHelper.get("flowers"), 8), 8);
return flowerMap;
}
}

View File

@ -1,7 +1,10 @@
package biomesoplenty.common.world.forceddecorators;
import java.util.HashMap;
import java.util.Random;
import net.minecraft.init.Blocks;
import biomesoplenty.api.BOPBlockHelper;
import biomesoplenty.common.world.decoration.IBOPDecoration;
import biomesoplenty.common.world.features.WorldGenBOPFlora;
@ -9,6 +12,25 @@ public class ForestForcedDecorator extends ForcedDecorator
{
public ForestForcedDecorator()
{
this.bopWorldFeatures.leafPilesPerChunk = 15;
this.bopWorldFeatures.bopFlowersPerChunk = 5;
this.bopWorldFeatures.cloverPatchesPerChunk = 5;
this.bopWorldFeatures.riverCanePerChunk = 5;
this.bopWorldFeatures.shrubsPerChunk = 2;
this.bopWorldFeatures.waterReedsPerChunk = 6;
this.bopWorldFeatures.poisonIvyPerChunk = 1;
this.bopWorldFeatures.bushesPerChunk = 2;
this.bopWorldFeatures.berryBushesPerChunk = 1;
this.bopWorldFeatures.toadstoolsPerChunk = 2;
}
@Override
public HashMap<WorldGenBOPFlora, Integer> getWeightedWorldGenForBOPFlowers()
{
HashMap<WorldGenBOPFlora, Integer> flowerMap = new HashMap();
flowerMap.put(new WorldGenBOPFlora(BOPBlockHelper.get("flowers"), 4), 8);
return flowerMap;
}
}

View File

@ -1,7 +1,9 @@
package biomesoplenty.common.world.forceddecorators;
import java.util.HashMap;
import java.util.Random;
import biomesoplenty.api.BOPBlockHelper;
import biomesoplenty.common.world.decoration.IBOPDecoration;
import biomesoplenty.common.world.features.WorldGenBOPFlora;
@ -9,6 +11,16 @@ public class IcePlainsForcedDecorator extends ForcedDecorator
{
public IcePlainsForcedDecorator()
{
this.bopWorldFeatures.bopFlowersPerChunk = 1;
}
@Override
public HashMap<WorldGenBOPFlora, Integer> getWeightedWorldGenForBOPFlowers()
{
HashMap<WorldGenBOPFlora, Integer> flowerMap = new HashMap();
flowerMap.put(new WorldGenBOPFlora(BOPBlockHelper.get("flowers"), 8), 8);
return flowerMap;
}
}

View File

@ -1,7 +1,9 @@
package biomesoplenty.common.world.forceddecorators;
import java.util.HashMap;
import java.util.Random;
import biomesoplenty.api.BOPBlockHelper;
import biomesoplenty.common.world.decoration.IBOPDecoration;
import biomesoplenty.common.world.features.WorldGenBOPFlora;
@ -9,6 +11,19 @@ public class JungleForcedDecorator extends ForcedDecorator
{
public JungleForcedDecorator()
{
this.bopWorldFeatures.leafPilesPerChunk = 10;
this.bopWorldFeatures.bopFlowersPerChunk = 10;
this.bopWorldFeatures.seaweedPerChunk = 15;
this.bopWorldFeatures.poisonIvyPerChunk = 1;
}
@Override
public HashMap<WorldGenBOPFlora, Integer> getWeightedWorldGenForBOPFlowers()
{
HashMap<WorldGenBOPFlora, Integer> flowerMap = new HashMap();
flowerMap.put(new WorldGenBOPFlora(BOPBlockHelper.get("flowers"), 5), 12);
return flowerMap;
}
}

View File

@ -1,14 +1,31 @@
package biomesoplenty.common.world.forceddecorators;
import java.util.HashMap;
import java.util.Random;
import net.minecraft.init.Blocks;
import net.minecraft.world.gen.feature.WorldGenerator;
import biomesoplenty.api.BOPBlockHelper;
import biomesoplenty.common.world.decoration.IBOPDecoration;
import biomesoplenty.common.world.features.WorldGenBOPFlora;
import biomesoplenty.common.world.features.WorldGenBOPTallGrass;
public class MesaForcedDecorator extends ForcedDecorator
{
public MesaForcedDecorator()
{
this.bopWorldFeatures.tinyCactiPerChunk = 10;
this.bopWorldFeatures.bromeliadsPerChunk = 10;
}
@Override
public HashMap<WorldGenerator, Double> getWeightedWorldGenForGrass()
{
HashMap<WorldGenerator, Double> grassMap = new HashMap();
grassMap.put(new WorldGenBOPTallGrass(BOPBlockHelper.get("plants"), 1), 1D);
grassMap.put(new WorldGenBOPTallGrass(Blocks.tallgrass, 1), 1D);
return grassMap;
}
}

View File

@ -9,6 +9,8 @@ public class MushroomIslandForcedDecorator extends ForcedDecorator
{
public MushroomIslandForcedDecorator()
{
this.bopWorldFeatures.blueMilksPerChunk = 2;
this.bopWorldFeatures.toadstoolsPerChunk = 8;
this.bopWorldFeatures.portobellosPerChunk = 6;
}
}

View File

@ -9,6 +9,6 @@ public class OceanForcedDecorator extends ForcedDecorator
{
public OceanForcedDecorator()
{
this.bopWorldFeatures.seaweedPerChunk = 20;
}
}

View File

@ -1,14 +1,29 @@
package biomesoplenty.common.world.forceddecorators;
import java.util.HashMap;
import java.util.Random;
import biomesoplenty.api.BOPBlockHelper;
import biomesoplenty.common.world.decoration.IBOPDecoration;
import biomesoplenty.common.world.features.WorldGenBOPDoubleFlora;
import biomesoplenty.common.world.features.WorldGenBOPFlora;
public class PlainsForcedDecorator extends ForcedDecorator
{
public PlainsForcedDecorator()
{
this.bopWorldFeatures.bopFlowersPerChunk = 8;
this.bopWorldFeatures.wildCarrotsPerChunk = 1;
}
@Override
public HashMap<WorldGenBOPFlora, Integer> getWeightedWorldGenForBOPFlowers()
{
HashMap<WorldGenBOPFlora, Integer> flowerMap = new HashMap();
flowerMap.put(new WorldGenBOPFlora(BOPBlockHelper.get("flowers"), 0), 10);
flowerMap.put(new WorldGenBOPFlora(BOPBlockHelper.get("flowers"), 9), 5);
return flowerMap;
}
}

View File

@ -9,6 +9,10 @@ public class RoofedForestForcedDecorator extends ForcedDecorator
{
public RoofedForestForcedDecorator()
{
this.bopWorldFeatures.toadstoolsPerChunk = 1;
this.bopWorldFeatures.blueMilksPerChunk = 1;
this.bopWorldFeatures.leafPilesPerChunk = 8;
this.bopWorldFeatures.deadLeafPilesPerChunk = 4;
this.bopWorldFeatures.waterReedsPerChunk = 2;
}
}

View File

@ -1,14 +1,32 @@
package biomesoplenty.common.world.forceddecorators;
import java.util.HashMap;
import java.util.Random;
import net.minecraft.init.Blocks;
import biomesoplenty.api.BOPBlockHelper;
import biomesoplenty.common.world.decoration.IBOPDecoration;
import biomesoplenty.common.world.features.WorldGenBOPDoubleFlora;
import biomesoplenty.common.world.features.WorldGenBOPFlora;
public class SavannaForcedDecorator extends ForcedDecorator
{
public SavannaForcedDecorator()
{
this.bopWorldFeatures.leafPilesPerChunk = 10;
this.bopWorldFeatures.deadLeafPilesPerChunk = 5;
this.bopWorldFeatures.bopFlowersPerChunk = 10;
this.bopWorldFeatures.bushesPerChunk = 3;
this.bopWorldFeatures.waterReedsPerChunk = 5;
}
@Override
public HashMap<WorldGenBOPFlora, Integer> getWeightedWorldGenForBOPFlowers()
{
HashMap<WorldGenBOPFlora, Integer> flowerMap = new HashMap();
flowerMap.put(new WorldGenBOPFlora(BOPBlockHelper.get("flowers"), 7), 8);
return flowerMap;
}
}

View File

@ -20,6 +20,8 @@ public class SwampForcedDecorator extends ForcedDecorator
this.bopWorldFeatures.waterReedsPerChunk = 5;
this.bopWorldFeatures.toadstoolsPerChunk = 1;
this.bopWorldFeatures.blueMilksPerChunk = 1;
this.bopWorldFeatures.leafPilesPerChunk = 5;
this.bopWorldFeatures.deadLeafPilesPerChunk = 2;
}
@Override

View File

@ -1,7 +1,9 @@
package biomesoplenty.common.world.forceddecorators;
import java.util.HashMap;
import java.util.Random;
import biomesoplenty.api.BOPBlockHelper;
import biomesoplenty.common.world.decoration.IBOPDecoration;
import biomesoplenty.common.world.features.WorldGenBOPFlora;
@ -9,6 +11,17 @@ public class TaigaForcedDecorator extends ForcedDecorator
{
public TaigaForcedDecorator()
{
this.bopWorldFeatures.deadLeafPilesPerChunk = 2;
this.bopWorldFeatures.bopFlowersPerChunk = 2;
}
@Override
public HashMap<WorldGenBOPFlora, Integer> getWeightedWorldGenForBOPFlowers()
{
HashMap<WorldGenBOPFlora, Integer> flowerMap = new HashMap();
flowerMap.put(new WorldGenBOPFlora(BOPBlockHelper.get("flowers"), 8), 8);
return flowerMap;
}
}