BiomesOPlenty/common/biomesoplenty/biomes/BiomeGenBrushland.java

55 lines
1.4 KiB
Java
Raw Normal View History

2013-05-03 13:00:44 +00:00
package biomesoplenty.biomes;
import java.util.Random;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.gen.feature.WorldGenerator;
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;
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
}