51 lines
1.5 KiB
Java
51 lines
1.5 KiB
Java
package biomesoplenty.biomes;
|
|
|
|
import java.util.Random;
|
|
|
|
import biomesoplenty.worldgen.WorldGenHeath;
|
|
|
|
import net.minecraft.world.biome.BiomeGenBase;
|
|
import net.minecraft.world.gen.feature.WorldGenShrub;
|
|
import net.minecraft.world.gen.feature.WorldGenerator;
|
|
|
|
public class BiomeGenHeathland extends BiomeGenBase
|
|
{
|
|
private BiomeDecoratorBOP customBiomeDecorator;
|
|
|
|
public BiomeGenHeathland(int par1)
|
|
{
|
|
super(par1);
|
|
this.spawnableCreatureList.clear();
|
|
this.theBiomeDecorator = new BiomeDecoratorBOP(this);
|
|
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
|
|
this.customBiomeDecorator.treesPerChunk = 2;
|
|
this.customBiomeDecorator.grassPerChunk = 10;
|
|
this.customBiomeDecorator.purpleFlowersPerChunk = 30;
|
|
this.customBiomeDecorator.deadBushPerChunk = 2;
|
|
this.customBiomeDecorator.generatePumpkins = false;
|
|
}
|
|
|
|
/**
|
|
* Gets a WorldGen appropriate for this biome.
|
|
*/
|
|
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
|
|
{
|
|
return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenShrub(0, 0) : new WorldGenHeath(false));
|
|
}
|
|
|
|
/**
|
|
* Provides the basic grass color based on the biome temperature and rainfall
|
|
*/
|
|
public int getBiomeGrassColor()
|
|
{
|
|
return 13550967;
|
|
}
|
|
|
|
/**
|
|
* Provides the basic foliage color based on the biome temperature and rainfall
|
|
*/
|
|
public int getBiomeFoliageColor()
|
|
{
|
|
return 11454081;
|
|
}
|
|
}
|