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;
|
2013-05-29 01:05:27 +00:00
|
|
|
import biomesoplenty.worldgen.WorldGenCherry1;
|
|
|
|
import biomesoplenty.worldgen.WorldGenCherry2;
|
2013-05-03 13:00:44 +00:00
|
|
|
|
|
|
|
public class BiomeGenCherryBlossomGrove extends BiomeGenBase
|
|
|
|
{
|
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 BiomeGenCherryBlossomGrove(int par1)
|
|
|
|
{
|
|
|
|
super(par1);
|
|
|
|
theBiomeDecorator = new BiomeDecoratorBOP(this);
|
|
|
|
customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
|
|
|
|
customBiomeDecorator.treesPerChunk = 3;
|
|
|
|
customBiomeDecorator.flowersPerChunk = -999;
|
|
|
|
customBiomeDecorator.pinkFlowersPerChunk = 15;
|
|
|
|
customBiomeDecorator.whiteFlowersPerChunk = 30;
|
|
|
|
customBiomeDecorator.tinyFlowersPerChunk = 25;
|
|
|
|
customBiomeDecorator.grassPerChunk = 15;
|
|
|
|
customBiomeDecorator.lilyflowersPerChunk = 9;
|
|
|
|
customBiomeDecorator.generatePumpkins = false;
|
|
|
|
}
|
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(3) == 0 ? new WorldGenCherry2(false) : new WorldGenCherry1(false);
|
|
|
|
}
|
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 10747818;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getBiomeFoliageColor()
|
|
|
|
{
|
|
|
|
return 10747818;
|
|
|
|
}
|
2013-05-03 13:00:44 +00:00
|
|
|
}
|