diff options
| author | bspkrs <bspkrs@gmail.com> | 2013-12-14 20:51:01 -0500 |
|---|---|---|
| committer | bspkrs <bspkrs@gmail.com> | 2013-12-14 20:51:01 -0500 |
| commit | 943f1a493b27c630e95730b385e6524643d98564 (patch) | |
| tree | 83c46a843eb0c51b6443cc8da0d0c3ca2f88294a /common/darkknight/jewelrycraft/worldGen/Generation.java | |
| parent | 3465c5723075bbf6ece3c98239230155faad958f (diff) | |
changed mod back to being Jewelrycraft and removed all Briefcase Speakers code
Let's face it, they don't belong together in the same mod... I'll still help you with the SMP compatibility like you originally asked me to, but I'd rather keep my mod idea for another day instead of have it be part of a mod that I'm not really that interested in. Let me know when your code is far enough that you're ready for SMP stuff.
Diffstat (limited to 'common/darkknight/jewelrycraft/worldGen/Generation.java')
| -rw-r--r-- | common/darkknight/jewelrycraft/worldGen/Generation.java | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/common/darkknight/jewelrycraft/worldGen/Generation.java b/common/darkknight/jewelrycraft/worldGen/Generation.java new file mode 100644 index 0000000..341b91e --- /dev/null +++ b/common/darkknight/jewelrycraft/worldGen/Generation.java @@ -0,0 +1,45 @@ +package darkknight.jewelrycraft.worldGen; + +import java.util.Random; + + +import net.minecraft.world.World; +import net.minecraft.world.chunk.IChunkProvider; +import net.minecraft.world.gen.feature.WorldGenMinable; +import cpw.mods.fml.common.IWorldGenerator; +import darkknight.jewelrycraft.block.BlockList; + +public class Generation implements IWorldGenerator +{ + + @Override + public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) + { + switch(world.provider.dimensionId){ + case -1: + generateNether(world, random, chunkX * 16, chunkZ * 16); + break; + case 0: + generateSurface(world, random, chunkX * 16, chunkZ * 16); + break; + case 1: + generateEnd(world, random, chunkX * 16, chunkZ * 16); + break; + } + } + + private void generateEnd(World world, Random random, int i, int j) {} + + private void generateSurface(World world, Random random, int i, int j) + { + for(int k = 0; k < 1; k++) { + int x = i + random.nextInt(16); + int y = random.nextInt(5); + int z = j + random.nextInt(16); + (new WorldGenMinable(BlockList.shadowOre.blockID, 1)).generate(world, random, x, y, z); + } + } + + private void generateNether(World world, Random random, int i, int j) {} + +} |
