Advertisement
Guest User

Untitled

a guest
May 5th, 2012
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. package net.minecraft.src;
  2.  
  3. import java.util.Random;
  4.  
  5. public class WorldGenShiteReed extends WorldGenerator
  6. {
  7. public WorldGenShiteReed()
  8. {
  9. }
  10.  
  11. public boolean generate(World par1World, Random par2Random, int par3, int par4, int par5)
  12. {
  13. for (int i = 0; i < 20; i++)
  14. {
  15. int j = (par3 + par2Random.nextInt(4)) - par2Random.nextInt(4);
  16. int k = par4;
  17. int l = (par5 + par2Random.nextInt(4)) - par2Random.nextInt(4);
  18. int i1 = 2 + par2Random.nextInt(par2Random.nextInt(3) + 1);
  19.  
  20. for (int j1 = 0; j1 < i1; j1++)
  21. {
  22. par1World.setBlock(j, k + j1, l, mod_Shite.ShiteReed.blockID);
  23. }
  24. }
  25.  
  26. return true;
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement