Advertisement
Eragonn14900

Untitled

Dec 4th, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. /**
  2. * Gets the metadata of the item this Block can drop. This method is called when the block gets destroyed. It
  3. * returns the metadata of the dropped item based on the old metadata of the block.
  4. */
  5. @Override
  6. public int damageDropped(IBlockState state)
  7. {
  8. final IBlockState set0 = IntegratedBlocks.surfaceOres.getDefaultState().withProperty(BlockSOMulti.TYPE, EnumSores.one1); // Desert Bricks
  9. ItemStack coal = new ItemStack(Items.COAL);
  10.  
  11. //Desert Bricks to Desert Bricks
  12. if (state.getValue(BlockSOMulti.TYPE) == EnumSores.one1)
  13. {
  14. return Items.COAL;
  15. }
  16.  
  17. else
  18. {
  19. return getMetaFromState(set0);
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement