Advertisement
Guest User

Untitled

a guest
Sep 8th, 2011
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 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. switch(j)
  19. {
  20. case 0://first metadata
  21. return mod_Block.blockBaseTexture;
  22. case 1://second metadata
  23. return mod_Block.blockBlank1Texture;
  24. case 2:
  25. return mod_Block.blockBlank2Texture;
  26. default://any other metadata
  27. return mod_Block.blockBaseTexture;
  28. }
  29. }
  30. public int idDropped(int i, Random random)
  31. {
  32. return blockID;
  33. }
  34. public int quantityDropped(Random random)
  35. {
  36. if(blockID==110)
  37. {
  38. return 1;
  39. }
  40. return 2;
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement