I just bought a new Mac, how do I transfer my songs from my iPhone to it?

I had a PC before and just upgraded to a new Mac. I have about 1000 songs and apparently apple has made it impossible to just plug in your phone and have the songs transfer. Is there a way I can get all the songs from my iPhone onto my new Mac?

Usually it just as easy as syncing your iphone with the mac i know because i have had a similar issue but if your music was all purchased from apple you can just put your apple ID in and they should all download if this is not the case and you still have the pc and a flashdrive all you have to do is drag them from the flashdrive into your itunes library