Advertisement
Guest User

Untitled

a guest
Sep 10th, 2011
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. package net.minecraft.src;
  2. import java.util.Random;
  3.  
  4.  
  5. public class BlockDStepBase extends Block
  6. {
  7. public BlockDStepBase(int i, int j)
  8. {
  9. super(i,j,Material.ground);
  10. if(i==111)
  11. {
  12. setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.5F, 1.0F);
  13. }
  14. setLightOpacity(255);
  15. }
  16. public int getBlockTextureFromSideAndMetadata(int i, int j)
  17. {
  18. int a;
  19. switch(j)
  20. {
  21. case 0:
  22. a= mod_Block.blockBaseTexture;
  23. break;
  24. case 1:
  25. a= mod_Block.blockBlank1Texture;
  26. break;
  27. case 2:
  28. a= mod_Block.blockBlank2Texture;
  29. break;
  30. default:
  31. a= mod_Block.blockBaseTexture;
  32. break;
  33.  
  34. }
  35. return a;
  36. }
  37. public int idDropped(int i, Random random)
  38. {
  39. return blockID;
  40. }
  41. public int quantityDropped(Random random)
  42. {
  43. if(blockID==110)
  44. {
  45. return 1;
  46. }
  47. return 2;
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement