use more standard packet id names

This commit is contained in:
Tnze
2024-06-16 16:39:22 +08:00
parent 9e64fe59a1
commit de10351a91
4 changed files with 61 additions and 38 deletions

View File

@ -9,32 +9,32 @@ type (
// Login Clientbound
const (
ClientboundLoginDisconnect ClientboundPacketID = iota // LoginDisconnect
ClientboundLoginEncryptionRequest // Hello
ClientboundLoginSuccess // GameProfile
ClientboundLoginCompression // LoginCompression
ClientboundLoginPluginRequest // CustomQuery
ClientboundLoginLoginDisconnect ClientboundPacketID = iota
ClientboundLoginHello
ClientboundLoginGameProfile
ClientboundLoginLoginCompression
ClientboundLoginCustomQuery
ClientboundLoginCookieRequest
)
// Login Serverbound
const (
ServerboundLoginStart ServerboundPacketID = iota // Hello
ServerboundLoginEncryptionResponse // Key
ServerboundLoginPluginResponse // CustomQueryAnswer
ServerboundLoginAcknowledged // LoginAcknowledged
ServerboundLoginHello ServerboundPacketID = iota
ServerboundLoginKey
ServerboundLoginCustomQueryAnswer
ServerboundLoginLoginAcknowledged
ServerboundLoginCookieResponse
)
// Status Clientbound
const (
ClientboundStatusResponse ClientboundPacketID = iota
ClientboundStatusStatusResponse ClientboundPacketID = iota
ClientboundStatusPongResponse
)
// Status Serverbound
const (
ServerboundStatusRequest ServerboundPacketID = iota
ServerboundStatusStatusRequest ServerboundPacketID = iota
ServerboundStatusPingRequest
)