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

@ -3,29 +3,52 @@ package packetid
// This file might be remove in the future go-mc!!!
// Login Clientbound
//
// Deprecated: Legacy name, might be removed in future version
const (
LoginDisconnect = iota
LoginEncryptionRequest
LoginSuccess
LoginCompression
LoginPluginRequest
LoginDisconnect = ClientboundLoginLoginDisconnect
LoginEncryptionRequest = ClientboundLoginHello
LoginSuccess = ClientboundLoginGameProfile
LoginCompression = ClientboundLoginLoginCompression
LoginPluginRequest = ClientboundLoginCustomQuery
ClientboundLoginDisconnect = ClientboundLoginLoginDisconnect
ClientboundLoginEncryptionRequest = ClientboundLoginHello
ClientboundLoginSuccess = ClientboundLoginGameProfile
ClientboundLoginCompression = ClientboundLoginLoginCompression
ClientboundLoginPluginRequest = ClientboundLoginCustomQuery
)
// Login Serverbound
//
// Deprecated: Legacy name, might be removed in future version
const (
LoginStart = iota
LoginEncryptionResponse
LoginPluginResponse
LoginStart = ServerboundLoginHello
LoginEncryptionResponse = ServerboundLoginKey
LoginPluginResponse = ServerboundLoginCustomQueryAnswer
ServerboundLoginStart = ServerboundLoginHello
ServerboundLoginEncryptionResponse = ServerboundLoginKey
ServerboundLoginPluginResponse = ServerboundLoginCustomQueryAnswer
ServerboundLoginAcknowledged = ServerboundLoginLoginAcknowledged
)
// Status Clientbound
//
// Deprecated: Legacy name, might be removed in future version
const (
StatusResponse = iota
StatusPongResponse
StatusResponse = ClientboundStatusStatusResponse
StatusPongResponse = ClientboundStatusPongResponse
ClientboundStatusResponse = ClientboundStatusStatusResponse
)
// Status Serverbound
//
// Deprecated: Legacy name, might be removed in future version
const (
StatusRequest = iota
StatusPingRequest
StatusRequest = ServerboundStatusStatusRequest
StatusPingRequest = ServerboundStatusPingRequest
ServerboundStatusRequest = ServerboundStatusStatusRequest
)