default boolean smashBlock(EntityPlayer player,World world,BlockPos pos,IBlockState state,ToolTier tier){
  ToolTier required=getRequiredTier(state);
  if (required != null && tier.isGreaterThanOrEqualTo(required)) {
    float luck=tier.ordinal() * 0.25F;
    List<ItemStack> drops=getDrops(player,world,pos,state,luck);
    if (drops.size() > 0) {
      if (!world.isRemote) {
        world.setBlockToAir(pos);
        for (        ItemStack drop : drops) {
          spawnAsEntity(world,pos,drop);
        }
      }
      return true;
    }
  }
  return false;
}

default boolean smashBlock ( EntityPlayer player , World world , BlockPos pos , IBlockState state , ToolTier tier ) { ToolTier required = getRequiredTier ( state ) ; if ( required != null && tier . isGreaterThanOrEqualTo ( required ) ) { float luck = tier . ordinal ( ) * 0.25F ; List < ItemStack > drops = getDrops ( player , world , pos , state , luck ) ; if ( drops . size ( ) > 0 ) { if ( ! world . isRemote ) { world . setBlockToAir ( pos ) ; for ( ItemStack drop : drops ) { spawnAsEntity ( world , pos , drop ) ; } } return true ; } } return false ; }
called to smash this block
