| package ma.Yeyvo.Paladium.common; |
| |
| import cpw.mods.fml.common.IWorldGenerator; |
| import ma.Yeyvo.Paladium.common.ModPaladium; |
| import java.util.Random; |
| import net.minecraft.init.Blocks; |
| import net.minecraft.world.World; |
| import net.minecraft.world.WorldProvider; |
| import net.minecraft.world.chunk.IChunkProvider; |
| import net.minecraft.world.gen.feature.WorldGenMinable; |
| |
| public class WorldGenerationminerai |
| implements IWorldGenerator |
| { |
| |
| public WorldGenerationminerai() |
| { |
| } |
| |
| public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) |
| { |
| switch(world.provider.dimensionId) |
| { |
| case -1: |
| generateNether(world, chunkX * 16, chunkZ * 16, random); |
| break; |
| |
| case 0: |
| generateSurface(world, chunkX * 16, chunkZ * 16, random); |
| break; |
| |
| case 1: |
| generateEnd(world, chunkX * 16, chunkZ * 16, random); |
| break; |
| |
| default: |
| return; |
| } |
| } |
| |
| private void generateSurface(World world, int x, int z, Random rand) |
| { |
| for(int i = 0; i < 2; i++) |
| (new WorldGenMinable(ModPaladium.AmethystOre, 0, 3, ModPaladium.amethystore)).generate(world, rand, x + rand.nextInt(16), rand.nextInt(20), z + rand.nextInt(16)); |
| |
| for(int i = 0; i < 1; i++) |
| (new WorldGenMinable(ModPaladium.PaladiumOre, 0, 3, ModPaladium.Paladiumore)).generate(world, rand, x + rand.nextInt(16), rand.nextInt(20), z + rand.nextInt(16)); |
| |
| for(int i = 0; (double)i < 0.69999999999999996D; i++) |
| (new WorldGenMinable(ModPaladium.TitaneOre, 0, 3, ModPaladium.titaneore)).generate(world, rand, x + rand.nextInt(16), rand.nextInt(19), z + rand.nextInt(16)); |
| |
| for(int i = 0; i < 50; i++) |
| (new WorldGenMinable(ModPaladium.findiumore, 0, 3, ModPaladium.findiumore)).generate(world, rand, x + rand.nextInt(16), rand.nextInt(16), z + rand.nextInt(16)); |
| |
| } |
| |
| private void generateEnd(World world1, int i, int j, Random random) |
| { |
| } |
| |
| private void generateNether(World world1, int k, int l, Random random1) |
| { |
| } |
| } |
| |
Mon erreur “The constructor WorldGenMinable(Item, int, int, Block) is undefined”
un fix??