2013-09-10 00:38:03 +00:00
|
|
|
package biomesoplenty.biomes;
|
|
|
|
|
|
|
|
import java.util.Random;
|
|
|
|
|
|
|
|
import net.minecraft.block.Block;
|
|
|
|
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-09-14 10:16:39 +00:00
|
|
|
import biomesoplenty.worldgen.tree.WorldGenDeadTree;
|
|
|
|
import biomesoplenty.worldgen.tree.WorldGenPersimmon;
|
|
|
|
import biomesoplenty.worldgen.tree.WorldGenTaiga4;
|
2013-09-10 00:38:03 +00:00
|
|
|
|
2013-09-10 12:58:26 +00:00
|
|
|
public class BiomeGenAutumnHills extends BiomeGenBase
|
2013-09-10 00:38:03 +00:00
|
|
|
{
|
|
|
|
private BiomeDecoratorBOP customBiomeDecorator;
|
|
|
|
|
2013-09-10 12:58:26 +00:00
|
|
|
public BiomeGenAutumnHills(int par1)
|
2013-09-10 00:38:03 +00:00
|
|
|
{
|
|
|
|
super(par1);
|
|
|
|
theBiomeDecorator = new BiomeDecoratorBOP(this);
|
|
|
|
customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
|
2013-09-10 12:58:26 +00:00
|
|
|
customBiomeDecorator.treesPerChunk = 6;
|
|
|
|
customBiomeDecorator.grassPerChunk = 13;
|
2013-09-10 00:38:03 +00:00
|
|
|
customBiomeDecorator.thornsPerChunk = 1;
|
2013-09-10 01:15:44 +00:00
|
|
|
customBiomeDecorator.purpleFlowersPerChunk = 6;
|
2013-09-10 00:38:03 +00:00
|
|
|
customBiomeDecorator.flowersPerChunk = -999;
|
|
|
|
customBiomeDecorator.reedsPerChunk = -999;
|
2013-09-10 12:58:26 +00:00
|
|
|
customBiomeDecorator.pumpkinsPerChunk = 2;
|
|
|
|
customBiomeDecorator.bushesPerChunk = 45;
|
|
|
|
customBiomeDecorator.berryBushesPerChunk = 5;
|
|
|
|
customBiomeDecorator.sproutsPerChunk = 2;
|
2013-09-20 21:47:49 +00:00
|
|
|
customBiomeDecorator.wheatGrassPerChunk = 16;
|
2013-09-21 18:08:17 +00:00
|
|
|
customBiomeDecorator.shrubsPerChunk = 20;
|
2013-09-27 20:58:55 +00:00
|
|
|
customBiomeDecorator.waterReedsPerChunk = 2;
|
2013-09-10 00:38:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets a WorldGen appropriate for this biome.
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
|
|
|
|
{
|
2013-09-11 11:43:47 +00:00
|
|
|
return par1Random.nextInt(3) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 1) : (par1Random.nextInt(5) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 2) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 2));
|
2013-09-10 00:38:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets a WorldGen appropriate for this biome.
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
|
|
|
|
{
|
2013-09-10 13:52:37 +00:00
|
|
|
return par1Random.nextInt(9) == 0 ? new WorldGenDeadTree(false) : (par1Random.nextInt(6) == 0 ? new WorldGenTaiga4(false) : (par1Random.nextInt(5) == 0 ? new WorldGenPersimmon(false) : this.worldGeneratorTrees));
|
2013-09-10 00:38:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Provides the basic grass color based on the biome temperature and rainfall
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public int getBiomeGrassColor()
|
|
|
|
{
|
2013-09-10 01:15:44 +00:00
|
|
|
return 12233056;
|
2013-09-10 00:38:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getBiomeFoliageColor()
|
|
|
|
{
|
2013-09-10 13:52:37 +00:00
|
|
|
return 12897365;
|
2013-09-10 00:38:03 +00:00
|
|
|
}
|
|
|
|
}
|