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