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.WorldGenTallGrass;
|
|
|
|
import net.minecraft.world.gen.feature.WorldGenerator;
|
2013-05-29 01:05:27 +00:00
|
|
|
import biomesoplenty.api.Blocks;
|
2013-05-03 13:00:44 +00:00
|
|
|
|
|
|
|
public class BiomeGenSteppe extends BiomeGenBase
|
|
|
|
{
|
|
|
|
private BiomeDecoratorBOP customBiomeDecorator;
|
|
|
|
|
|
|
|
public BiomeGenSteppe(int par1)
|
|
|
|
{
|
|
|
|
super(par1);
|
|
|
|
this.spawnableCreatureList.clear();
|
|
|
|
this.theBiomeDecorator = new BiomeDecoratorBOP(this);
|
|
|
|
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
|
|
|
|
this.customBiomeDecorator.treesPerChunk = -999;
|
|
|
|
this.customBiomeDecorator.flowersPerChunk = -999;
|
|
|
|
this.customBiomeDecorator.grassPerChunk = 15;
|
|
|
|
this.customBiomeDecorator.deadBushPerChunk = 7;
|
|
|
|
this.customBiomeDecorator.tinyCactiPerChunk = 1;
|
2013-05-29 00:19:44 +00:00
|
|
|
this.customBiomeDecorator.generateQuicksand = true;
|
2013-05-03 13:00:44 +00:00
|
|
|
this.customBiomeDecorator.steppePerChunk = 6;
|
2013-05-08 03:25:14 +00:00
|
|
|
this.customBiomeDecorator.aloePerChunk = 2;
|
2013-05-03 13:00:44 +00:00
|
|
|
this.customBiomeDecorator.generatePumpkins = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets a WorldGen appropriate for this biome.
|
|
|
|
*/
|
|
|
|
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
|
|
|
|
{
|
2013-05-07 04:41:56 +00:00
|
|
|
return new WorldGenTallGrass(Blocks.foliage.get().blockID, 1);
|
2013-05-03 13:00:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Provides the basic grass color based on the biome temperature and rainfall
|
|
|
|
*/
|
|
|
|
public int getBiomeGrassColor()
|
|
|
|
{
|
|
|
|
return 13413215;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getBiomeFoliageColor()
|
|
|
|
{
|
|
|
|
return 13413215;
|
|
|
|
}
|
|
|
|
}
|