package biomesoplenty.biomes; import java.awt.Color; import java.util.Random; import biomesoplenty.api.Blocks; import biomesoplenty.configuration.BOPBlocks; import biomesoplenty.configuration.BOPConfiguration; import biomesoplenty.worldgen.WorldGenVolcano; import net.minecraft.world.biome.BiomeGenBase; import net.minecraft.world.gen.feature.WorldGenerator; public class BiomeGenVolcano extends BiomeGenBase { private BiomeDecoratorBOP customBiomeDecorator; public BiomeGenVolcano(int par1) { super(par1); this.spawnableCreatureList.clear(); this.topBlock = (byte)Blocks.ashStone.get().blockID; this.fillerBlock = (byte)Blocks.ashStone.get().blockID; this.theBiomeDecorator = new BiomeDecoratorBOP(this); this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; this.customBiomeDecorator.treesPerChunk = 1; this.customBiomeDecorator.flowersPerChunk = -999; this.customBiomeDecorator.grassPerChunk = -999; this.customBiomeDecorator.lavaLakesPerChunk = 50; this.customBiomeDecorator.generateAsh = true; } /** * Gets a WorldGen appropriate for this biome. */ public WorldGenerator getRandomWorldGenForTrees(Random par1Random) { return new WorldGenVolcano(); } /** * takes temperature, returns color */ public int getSkyColorByTemp(float par1) { if (BOPConfiguration.skyColors = true) { return 8026746; } else { par1 /= 3.0F; if (par1 < -1.0F) { par1 = -1.0F; } if (par1 > 1.0F) { par1 = 1.0F; } return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB(); } } }