Advertisement
Guest User

CorruptGrass

a guest
Apr 24th, 2012
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. package net.minecraft.src;
  2. import java.util.Random;
  3.  
  4. public class CorruptGrass extends Block
  5. {
  6. public CorruptGrass(int i, int j)
  7. {
  8. super(i, j, Material.grass);
  9. }
  10.  
  11. public int idDropped(int i, Random random, int j)
  12. {
  13. return mod_Corruption.CorruptDirt.blockID;
  14. }
  15. public int quantityDropped(Random random)
  16. {
  17. return 1;
  18. }
  19.  
  20. public int getBlockTextureFromSideAndMetadata(int i, int j)
  21. {
  22. return getBlockTextureFromSide(i);
  23. }
  24.  
  25. public int getBlockTextureFromSide(int i)
  26. {
  27. if (i == 0)
  28. {
  29. return mod_Corruption.CorruptGrassBottom;
  30. }
  31.  
  32. if (i == 1)
  33. {
  34. return mod_Corruption.CorruptGrassTop;
  35. }
  36. else
  37. {
  38. return mod_Corruption.CorruptGrassSide;
  39. }
  40. }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement