Guest User

Untitled

a guest
Jan 15th, 2012
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. package net.minecraft.src;
  2.  
  3. import java.util.Random;
  4.  
  5. public class BlockCobbleGlass extends BlockBreakable
  6. {
  7. public BlockCobbleGlass(int x, int y, Material material, boolean flag)
  8. {
  9. super(x, y, material, flag);
  10. }
  11.  
  12. public int quantityDropped(Random random)
  13. {
  14. return 1; //return 0; if you want nothing to return when you break it
  15. }
  16.  
  17. public int getRenderBlockPass()
  18. {
  19. return 0;
  20. }
  21.  
  22. public int getBlockTextureFromSide(int x)
  23. {
  24. if(x == 0)
  25. return mod_GlassPass.InvisCobbleBottom;
  26. if(x == 1)
  27. return mod_GlassPass.InvisCobbleTop;
  28. if(x == 2)
  29. return mod_GlassPass.InvisCobbleSide;
  30. if(x == 3)
  31. return mod_GlassPass.InvisCobbleFront;
  32. if(x == 4)
  33. return mod_GlassPass.InvisCobbleSide;
  34. if(x == 5)
  35. return mod_GlassPass.InvisCobbleSide;
  36.  
  37. return 0;
  38. }
  39.  
  40. public void onBlockPlacedBy(World world, int i, int j, int k, EntityLiving entityliving)
  41. {
  42. int l = MathHelper.floor_double((double)((entityliving.rotationYaw * 4F) / 360F) + 2.5D) & 3;
  43. world.setBlockMetadataWithNotify(i, j, k, l);
  44. }
  45.  
  46. }
Advertisement
Add Comment
Please, Sign In to add comment