BiomesOPlenty/src/minecraft/biomesoplenty/biomes/BiomeGenSteppe.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.WorldGenTallGrass;
import net.minecraft.world.gen.feature.WorldGenerator;
import biomesoplenty.api.Blocks;
2013-05-03 13:00:44 +00:00
public class BiomeGenSteppe extends BiomeGenBase
{
2013-05-31 10:34:02 +00:00
private BiomeDecoratorBOP customBiomeDecorator;
2013-05-03 13:00:44 +00:00
public BiomeGenSteppe(int par1)
2013-05-31 10:34:02 +00:00
{
super(par1);
spawnableCreatureList.clear();
theBiomeDecorator = new BiomeDecoratorBOP(this);
customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
customBiomeDecorator.treesPerChunk = -999;
customBiomeDecorator.flowersPerChunk = -999;
customBiomeDecorator.grassPerChunk = 15;
customBiomeDecorator.deadBushPerChunk = 7;
customBiomeDecorator.tinyCactiPerChunk = 1;
customBiomeDecorator.generateQuicksand = true;
customBiomeDecorator.steppePerChunk = 6;
customBiomeDecorator.aloePerChunk = 2;
customBiomeDecorator.generatePumpkins = false;
}
/**
* Gets a WorldGen appropriate for this biome.
*/
@Override
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return new WorldGenTallGrass(Blocks.foliage.get().blockID, 1);
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 13413215;
}
@Override
public int getBiomeFoliageColor()
{
return 13413215;
}
2013-05-03 13:00:44 +00:00
}