2013-05-03 13:00:44 +00:00
|
|
|
package biomesoplenty.biomes;
|
|
|
|
|
|
|
|
import java.util.Random;
|
|
|
|
|
|
|
|
import net.minecraft.block.Block;
|
|
|
|
import net.minecraft.world.biome.BiomeGenBase;
|
|
|
|
import net.minecraft.world.gen.feature.WorldGenerator;
|
2013-05-29 01:05:27 +00:00
|
|
|
import biomesoplenty.worldgen.WorldGenMangrove;
|
2013-05-30 03:04:52 +00:00
|
|
|
import biomesoplenty.worldgen.WorldGenMangrove2;
|
2013-05-03 13:00:44 +00:00
|
|
|
|
|
|
|
public class BiomeGenMangrove extends BiomeGenBase
|
|
|
|
{
|
|
|
|
private BiomeDecoratorBOP customBiomeDecorator;
|
|
|
|
|
|
|
|
public BiomeGenMangrove(int par1)
|
|
|
|
{
|
|
|
|
super(par1);
|
|
|
|
this.spawnableCreatureList.clear();
|
|
|
|
this.topBlock = (byte)Block.sand.blockID;
|
|
|
|
this.fillerBlock = (byte)Block.sand.blockID;
|
|
|
|
this.theBiomeDecorator = new BiomeDecoratorBOP(this);
|
|
|
|
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
|
|
|
|
this.customBiomeDecorator.treesPerChunk = 6;
|
|
|
|
this.customBiomeDecorator.deadBushPerChunk = 1;
|
|
|
|
this.customBiomeDecorator.deadGrassPerChunk = 9;
|
|
|
|
this.customBiomeDecorator.reedsPerChunk = -999;
|
|
|
|
this.customBiomeDecorator.cactiPerChunk = -999;
|
|
|
|
this.customBiomeDecorator.desertSproutsPerChunk = 1;
|
2013-05-30 03:04:52 +00:00
|
|
|
this.customBiomeDecorator.waterLakesPerChunk = 10;
|
2013-05-03 13:00:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets a WorldGen appropriate for this biome.
|
|
|
|
*/
|
|
|
|
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
|
|
|
|
{
|
2013-05-30 03:04:52 +00:00
|
|
|
return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenMangrove2(0,0) : new WorldGenMangrove(false));
|
2013-05-03 13:00:44 +00:00
|
|
|
}
|
|
|
|
}
|