package kkaylium.TechliumCraft.gen.glowLandOLD.gen;

import java.util.Random;

import kkaylium.TechliumCraft.inits.TCInits;
import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkProvider;
import cpw.mods.fml.common.IWorldGenerator;

public class GlowLandOreGen implements IWorldGenerator{

	public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
    {
            switch (world.provider.dimensionId)
            {
            case 0:
                    generateSurface(world, random, chunkX * 16, chunkZ * 16);
            case 1:
                    generateEnd(world, random, chunkX * 16, chunkZ * 16);
            case 2:
                    generateNether(world, random, chunkX * 16, chunkZ * 16, chunkProvider, chunkX, chunkZ);
            case 15:
                    generateGlowLand(world, random, chunkX * 16, chunkZ * 16);
            }
    }

    private void generateSurface(World world, Random random, int chunkX, int chunkZ)
    {
         
    }

    private void generateNether(World world, Random random, int chunkX, int chunkZ, IChunkProvider par1IChunkProvider, int par2, int par3)
    {

    }

    private void generateEnd(World world, Random random, int chunkX, int chunkZ)
    {

    }

    private void generateGlowLand(World world, Random random, int chunkX, int chunkZ)
    {
            for (int i = 0; i < 50; i++)
            {
                    int xCoord = chunkX + random.nextInt(16);
                    int yCoord = random.nextInt(128);
                    int zCoord = chunkZ + random.nextInt(16);
                    new GlowWorldGenMinable(TCInits.glowOres, 15).generate(world, random, xCoord, yCoord, zCoord);
            }
            for (int i = 0; i < 50; i++)
            {
                    int xCoord = chunkX + random.nextInt(16);
                    int yCoord = random.nextInt(128);
                    int zCoord = chunkZ + random.nextInt(16);
                    new GlowWorldGenMinable(TCInits.glowOres, 15).generate(world, random, xCoord, yCoord, zCoord);
            }
    }
	
}
