Guest User

Untitled

a guest
Oct 19th, 2015
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. package com.mtndewey.ninjamod.client;
  2. import java.util.Random;
  3. import net.minecraft.util.BlockPos;
  4. import net.minecraft.world.World;
  5. import net.minecraft.world.chunk.IChunkProvider;
  6. import net.minecraftforge.fml.common.IWorldGenerator;
  7. public class WorldGenClient implements IWorldGenerator {
  8. @Override
  9. public void generate(Random random, int chunkX, int chunkZ, World world,
  10. IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
  11. switch (world.provider.getDimensionId()) {
  12. case -1:
  13. generateNether(world, random, chunkX * 16, chunkZ * 16);
  14. case 0:
  15. generateSurface(world, random, chunkX * 16, chunkZ * 16);
  16. }
  17. }
  18. private void generateNether(World world, Random random, int i, int j) {
  19. }
  20. private void generateSurface(World world, Random random, int i, int j) {
  21. int Xcoord = i + random.nextInt(384);
  22. int Ycoord = random.nextInt(200);
  23. int Zcoord = j + random.nextInt(384);
  24. (new WorldGenSmallDojo()).generate(world, random, new BlockPos(Xcoord, Ycoord,
  25. Zcoord));
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment