This quote means that even if the speaker were to stop breathing, Peter (whoever they are referring to) would only attend any party that was thrown in their honor if there was cake. It implies that Peter is not very interested in the same event unless there is something attractive being offered to him.