Guest User

Untitled

a guest
Dec 18th, 2016
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. package fr.tuto.sylvain.common;
  2.  
  3. import java.util.Random;
  4. import net.minecraft.block.Block;
  5. import net.minecraft.block.material.Material;
  6. import net.minecraft.world.World;
  7.  
  8. public class BlockPeche
  9. extends Block
  10. {
  11. public void onBlockDestroyedByPlayer(World world, int x, int y, int z, int l)
  12. {
  13. world.setBlock(x, y, z, Modsyvlain.BlockPeche, 0, 2);
  14. }
  15.  
  16. protected BlockPeche()
  17. {
  18. super(Material.leaves);
  19. }
  20.  
  21. public boolean renderAsNormalBlock()
  22. {
  23. return false;
  24. }
  25.  
  26. public boolean isOpaqueCube()
  27. {
  28. return false;
  29. }
  30.  
  31. public item getItemDropped(int metadata, Random rand, int fortune)
  32. {
  33. return sylvain.Iphone6;
  34. }
  35.  
  36. public int quantityDropped(Random rdm)
  37. {
  38. return 2;
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment