I was looking at the new API documentation, and saw that the TextPacket class defines the following: PHP: const TYPE_RAW = 0const TYPE_CHAT = 1const TYPE_TRANSLATION = 2const TYPE_POPUP = 3const TYPE_TIP = 4 So, chat and popup seem to be self explanatory. I am wondering what is the Tip for? Don't know what Raw and Translation are supposed to mean, either.
Popup, tip and raw are sendPopup(), sendTip() and sendMessage() in the player class respectively. Chat is only used for chat packets sent from the client. Translation is when the packet message only contains a translation ID and lets the client translate it.