Syncing music to iPhone 3gs

I have a jailbroken iPhone 3gs and i used to sync music to it from my laptop using iTunes. But later I formatted my laptop and i downloaded a new version of iTunes. I connected my iPhone to the laptop and wanted to sync music, and iTunes gave me a warning that my iPhone was synced by another iTunes library, and syncing it with this iTunes library will delete everything on the iPhone.
Will this delete all my downloaded applications or only the music?
This will delete everything.

TiPb's Policy on Piracy Discussion
Why is this marked Piracy? Wouldn't iTunes do that with any library?
The piracy part is the part I edited out of his post.
Aha. You're too quick for me, Alli!
This will delete EVERYTHING from the phone, however, you can re-download all of your applications for no additional cost.
thanks every1

Original thread: https://forums.imore.com/threads/syncing-music-to-iphone-3gs.220044/