BiomesOPlenty/src/minecraft/biomesoplenty/biomes/BiomeGenGrove.java

53 lines
1.6 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.WorldGenShrub;
import net.minecraft.world.gen.feature.WorldGenerator;
public class BiomeGenGrove extends BiomeGenBase
{
private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenGrove(int par1)
{
super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 3;
2013-05-03 13:00:44 +00:00
this.customBiomeDecorator.flowersPerChunk = 5;
this.customBiomeDecorator.grassPerChunk = 10;
this.customBiomeDecorator.sproutsPerChunk = 2;
2013-05-06 10:19:33 +00:00
this.customBiomeDecorator.poisonIvyPerChunk = 2;
2013-05-15 12:49:06 +00:00
this.customBiomeDecorator.lilyflowersPerChunk = 3;
this.customBiomeDecorator.berryBushesPerChunk = 2;
2013-05-03 13:00:44 +00:00
this.customBiomeDecorator.generatePumpkins = false;
}
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(2) == 0 ? new WorldGenShrub(2,2) : this.worldGeneratorBigTree);
//return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenNorwaySpruce1() : new WorldGenNorwaySpruce2());
}
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
public int getBiomeGrassColor()
{
return 8298592;
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
public int getBiomeFoliageColor()
{
return 7445333;
}
}