2013-05-03 13:00:44 +00:00
|
|
|
package biomesoplenty.biomes;
|
|
|
|
|
|
|
|
import java.util.Random;
|
|
|
|
|
2013-05-24 14:36:00 +00:00
|
|
|
import biomesoplenty.worldgen.WorldGenBrush1;
|
|
|
|
import biomesoplenty.worldgen.WorldGenBrush2;
|
|
|
|
import biomesoplenty.worldgen.WorldGenChaparral2;
|
|
|
|
|
2013-05-03 13:00:44 +00:00
|
|
|
import net.minecraft.world.biome.BiomeGenBase;
|
|
|
|
import net.minecraft.world.gen.feature.WorldGenShrub;
|
|
|
|
import net.minecraft.world.gen.feature.WorldGenerator;
|
|
|
|
|
2013-05-24 14:36:00 +00:00
|
|
|
public class BiomeGenBrushland extends BiomeGenBase
|
2013-05-03 13:00:44 +00:00
|
|
|
{
|
|
|
|
private BiomeDecoratorBOP customBiomeDecorator;
|
|
|
|
|
2013-05-24 14:36:00 +00:00
|
|
|
public BiomeGenBrushland(int par1)
|
2013-05-03 13:00:44 +00:00
|
|
|
{
|
|
|
|
super(par1);
|
|
|
|
this.theBiomeDecorator = new BiomeDecoratorBOP(this);
|
|
|
|
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
|
2013-05-24 14:36:00 +00:00
|
|
|
this.customBiomeDecorator.treesPerChunk = 10;
|
|
|
|
this.customBiomeDecorator.grassPerChunk = 6;
|
2013-05-03 13:00:44 +00:00
|
|
|
this.customBiomeDecorator.thornsPerChunk = 4;
|
|
|
|
this.customBiomeDecorator.flowersPerChunk = -999;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets a WorldGen appropriate for this biome.
|
|
|
|
*/
|
|
|
|
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
|
|
|
|
{
|
2013-05-24 14:36:00 +00:00
|
|
|
return (WorldGenerator)(par1Random.nextInt(2) == 0 ? new WorldGenBrush2() : (par1Random.nextInt(5) == 0 ? new WorldGenBrush1() : new WorldGenChaparral2()));
|
2013-05-03 13:00:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Provides the basic grass color based on the biome temperature and rainfall
|
|
|
|
*/
|
|
|
|
public int getBiomeGrassColor()
|
|
|
|
{
|
2013-05-24 14:36:00 +00:00
|
|
|
return 13222271;
|
2013-05-03 13:00:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Provides the basic foliage color based on the biome temperature and rainfall
|
|
|
|
*/
|
|
|
|
public int getBiomeFoliageColor()
|
|
|
|
{
|
2013-05-24 14:36:00 +00:00
|
|
|
return 11716223;
|
2013-05-03 13:00:44 +00:00
|
|
|
}
|
|
|
|
}
|