Guest User

Untitled

a guest
May 18th, 2014
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. package fantasy_biomes.blocks;
  2.  
  3. import java.util.Random;
  4. import net.minecraft.block.Block;
  5. import net.minecraft.block.BlockGrass;
  6. import net.minecraft.block.BlockLeaves;
  7. import net.minecraft.block.material.Material;
  8. import net.minecraft.creativetab.CreativeTabs;
  9. public class BlockTulipTreeLeaves extends BasicModBlock
  10. {
  11. public BlockTulipTreeLeaves(int par1)
  12. {
  13. super(par1, Material.leaves);
  14. this.setCreativeTab(CreativeTabs.tabBlock);
  15. this.setStepSound(soundGrassFootstep);
  16. this.setHardness(0.2F);
  17. }
  18.  
  19. public boolean isOpaqueCube()
  20. {
  21. return false;
  22. }
  23. /**
  24. * Returns the ID of the items to drop on destruction.
  25. */
  26. public int idDropped(int par1, Random par2Random, int par3)
  27. {
  28. return this.blockID;
  29. }
  30. /**
  31. * Returns the quantity of items to drop on block destruction.
  32. */
  33. public int quantityDropped(Random par1Random)
  34. {
  35. return 1;
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment