Fixed dupe Volcano and Tropics classes

This commit is contained in:
Adubbz 2014-05-18 23:51:07 +10:00
parent 743c4fb6c6
commit cc133672ef
4 changed files with 5 additions and 179 deletions

View file

@ -21,14 +21,14 @@ import biomesoplenty.common.world.features.trees.WorldGenTropicsShrub;
public class BiomeGenTropics extends BOPSubBiome
{
private static final Height biomeHeight = new Height(0.0F, 0.4F);
private static final Height biomeHeight = new Height(0.2F, 0.3F);
public BiomeGenTropics(int id)
{
super(id);
this.zoom = 0.25D;
this.threshold = 0.25D;
this.zoom = 0.01D;
this.threshold = 0.5D;
//TODO: setHeight()
this.setHeight(biomeHeight);

View file

@ -13,13 +13,11 @@ public class BiomeGenVolcano extends BOPSubBiome
{
super(id);
this.zoom = 0.25D;
this.threshold = 0.25D;
this.zoom = 0.01D;
this.threshold = 0.5D;
//TODO: setHeight()
this.setHeight(biomeHeight);
this.setDisableRain();
//TODO: setColor()
this.setColor(6645093);
this.setTemperatureRainfall(2.0F, 0.05F);

View file

@ -1,127 +0,0 @@
package biomesoplenty.common.biomes.overworld.subbiomes;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase.Height;
import net.minecraft.world.biome.BiomeGenBase.SpawnListEntry;
import net.minecraft.world.gen.feature.WorldGenAbstractTree;
import net.minecraft.world.gen.feature.WorldGenShrub;
import biomesoplenty.api.BOPBlockHelper;
import biomesoplenty.common.biomes.BOPSubBiome;
import biomesoplenty.common.configuration.BOPConfigurationMisc;
import biomesoplenty.common.entities.EntityJungleSpider;
import biomesoplenty.common.world.features.WorldGenBOPDoubleFlora;
import biomesoplenty.common.world.features.WorldGenBOPFlora;
import biomesoplenty.common.world.features.WorldGenBOPTallGrass;
import biomesoplenty.common.world.features.trees.WorldGenPalmTree1;
import biomesoplenty.common.world.features.trees.WorldGenTropicsShrub;
public class BiomeGenTropics extends BOPSubBiome
{
private static final Height biomeHeight = new Height(0.2F, 0.3F);
public BiomeGenTropics(int id)
{
super(id);
this.zoom = 0.01D;
this.threshold = 0.5D;
//TODO: setHeight()
this.setHeight(biomeHeight);
//TODO: setColor()
this.setColor(2211330);
this.setTemperatureRainfall(2.0F, 2.0F);
this.spawnableCreatureList.clear();
this.spawnableMonsterList.add(new SpawnListEntry(EntityJungleSpider.class, 12, 6, 6));
this.theBiomeDecorator.treesPerChunk = 12;
this.theBiomeDecorator.grassPerChunk = 7;
this.theBiomeDecorator.flowersPerChunk = 10;
this.theBiomeDecorator.sandPerChunk = 50;
this.theBiomeDecorator.sandPerChunk2 = 50;
this.bopWorldFeatures.setFeature("bopFlowersPerChunk", 30);
this.bopWorldFeatures.setFeature("shrubsPerChunk", 4);
this.bopWorldFeatures.setFeature("leafPilesPerChunk", 10);
this.bopWorldFeatures.setFeature("seaweedPerChunk", 10);
this.bopWorldFeatures.setFeature("generatePumpkins", false);
this.bopWorldFeatures.setFeature("bopGrassPerChunk", 7);
this.bopWorldFeatures.weightedFlowerGen.put(new WorldGenBOPFlora(BOPBlockHelper.get("flowers"), 9), 8);
this.bopWorldFeatures.weightedFlowerGen.put(new WorldGenBOPFlora(BOPBlockHelper.get("flowers"), 5), 10);
this.bopWorldFeatures.weightedFlowerGen.put(new WorldGenBOPFlora(BOPBlockHelper.get("flowers2"), 0), 15);
this.bopWorldFeatures.weightedFlowerGen.put(new WorldGenBOPFlora(Blocks.red_flower, 1), 7);
this.bopWorldFeatures.weightedFlowerGen.put(new WorldGenBOPDoubleFlora(4, 5), 6);
this.bopWorldFeatures.weightedFlowerGen.put(new WorldGenBOPDoubleFlora(0, 3), 2);
this.bopWorldFeatures.weightedGrassGen.put(new WorldGenBOPTallGrass(BOPBlockHelper.get("foliage"), 10), 0.5D);
this.bopWorldFeatures.weightedGrassGen.put(new WorldGenBOPTallGrass(BOPBlockHelper.get("foliage"), 11), 0.5D);
this.bopWorldFeatures.weightedGrassGen.put(new WorldGenBOPTallGrass(Blocks.tallgrass, 1), 1D);
this.bopWorldFeatures.weightedGrassGen.put(new WorldGenBOPDoubleFlora(3), 0.25D);
}
@Override
//TODO: getRandomWorldGenForTrees()
public WorldGenAbstractTree func_150567_a(Random random)
{
return random.nextInt(2) == 0 ? new WorldGenPalmTree1() :
(random.nextInt(2) == 0 ? new WorldGenTropicsShrub() :
new WorldGenShrub(0, 0));
}
@Override
public void decorate(World world, Random random, int chunkX, int chunkZ)
{
super.decorate(world, random, chunkX, chunkZ);
int var5 = 12 + random.nextInt(6);
for (int var6 = 0; var6 < var5; ++var6)
{
int x = chunkX + random.nextInt(16);
int y = random.nextInt(28) + 4;
int z = chunkZ + random.nextInt(16);
//TODO: getBlock()
Block block = world.getBlock(x, y, z);
if (block != null && block.isReplaceableOreGen(world, x, y, z, Blocks.stone))
{
//TODO: setBlock()
world.setBlock(x, y, z, BOPBlockHelper.get("gemOre"), 6, 2);
}
}
}
@Override
public int getSkyColorByTemp(float par1)
{
if (BOPConfigurationMisc.skyColors) return 507391;
else return super.getSkyColorByTemp(par1);
}
/**
* Fog Color
*/
/*
@Override
public int getFogColour()
{
return 7724287;
}
*/
/*@Override
public float getFogCloseness()
{
// TODO Auto-generated method stub
return 1.0F;
}
*/
}

View file

@ -1,45 +0,0 @@
package biomesoplenty.common.biomes.overworld.subbiomes;
import net.minecraft.world.biome.BiomeGenBase.Height;
import biomesoplenty.api.BOPBlockHelper;
import biomesoplenty.common.biomes.BOPSubBiome;
import biomesoplenty.common.configuration.BOPConfigurationMisc;
public class BiomeGenVolcano extends BOPSubBiome
{
private static final Height biomeHeight = new Height(5.0F, 0.025F);
public BiomeGenVolcano(int id)
{
super(id);
this.zoom = 0.01D;
this.threshold = 0.5D;
//TODO: setHeight()
this.setHeight(biomeHeight);
this.setDisableRain();
//TODO: setColor()
this.setColor(6645093);
this.setTemperatureRainfall(2.0F, 0.05F);
this.spawnableCreatureList.clear();
this.topBlock = BOPBlockHelper.get("ashStone");
this.fillerBlock = BOPBlockHelper.get("ashStone");
this.theBiomeDecorator.treesPerChunk = 0;
this.theBiomeDecorator.flowersPerChunk = -999;
this.theBiomeDecorator.grassPerChunk = -999;
this.bopWorldFeatures.setFeature("lavaLakesPerChunk", 20);
this.bopWorldFeatures.setFeature("lavaSpoutsPerChunk", 1);
this.bopWorldFeatures.setFeature("generateAsh", true);
}
@Override
public int getSkyColorByTemp(float par1)
{
if (BOPConfigurationMisc.skyColors) return 8026746;
else return super.getSkyColorByTemp(par1);
}
}