update packetid
This commit is contained in:
@ -23,6 +23,11 @@ public class Main {
|
|||||||
handlePackets(w, ConnectionProtocol.STATUS.getPacketsByIds(PacketFlow.SERVERBOUND));
|
handlePackets(w, ConnectionProtocol.STATUS.getPacketsByIds(PacketFlow.SERVERBOUND));
|
||||||
System.out.println();
|
System.out.println();
|
||||||
System.out.println();
|
System.out.println();
|
||||||
|
handlePackets(w, ConnectionProtocol.CONFIGURATION.getPacketsByIds(PacketFlow.CLIENTBOUND));
|
||||||
|
System.out.println();
|
||||||
|
handlePackets(w, ConnectionProtocol.CONFIGURATION.getPacketsByIds(PacketFlow.SERVERBOUND));
|
||||||
|
System.out.println();
|
||||||
|
System.out.println();
|
||||||
handlePackets(w, ConnectionProtocol.PLAY.getPacketsByIds(PacketFlow.CLIENTBOUND));
|
handlePackets(w, ConnectionProtocol.PLAY.getPacketsByIds(PacketFlow.CLIENTBOUND));
|
||||||
System.out.println();
|
System.out.println();
|
||||||
handlePackets(w, ConnectionProtocol.PLAY.getPacketsByIds(PacketFlow.SERVERBOUND));
|
handlePackets(w, ConnectionProtocol.PLAY.getPacketsByIds(PacketFlow.SERVERBOUND));
|
||||||
|
31
data/packetid/legacy.go
Normal file
31
data/packetid/legacy.go
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
package packetid
|
||||||
|
|
||||||
|
// This file might be remove in the future go-mc!!!
|
||||||
|
|
||||||
|
// Login Clientbound
|
||||||
|
const (
|
||||||
|
LoginDisconnect = iota
|
||||||
|
LoginEncryptionRequest
|
||||||
|
LoginSuccess
|
||||||
|
LoginCompression
|
||||||
|
LoginPluginRequest
|
||||||
|
)
|
||||||
|
|
||||||
|
// Login Serverbound
|
||||||
|
const (
|
||||||
|
LoginStart = iota
|
||||||
|
LoginEncryptionResponse
|
||||||
|
LoginPluginResponse
|
||||||
|
)
|
||||||
|
|
||||||
|
// Status Clientbound
|
||||||
|
const (
|
||||||
|
StatusResponse = iota
|
||||||
|
StatusPongResponse
|
||||||
|
)
|
||||||
|
|
||||||
|
// Status Serverbound
|
||||||
|
const (
|
||||||
|
StatusRequest = iota
|
||||||
|
StatusPingRequest
|
||||||
|
)
|
@ -9,30 +9,54 @@ type (
|
|||||||
|
|
||||||
// Login Clientbound
|
// Login Clientbound
|
||||||
const (
|
const (
|
||||||
LoginDisconnect = iota
|
ClientboundLoginDisconnect ClientboundPacketID = iota // LoginDisconnect
|
||||||
LoginEncryptionRequest
|
ClientboundLoginEncryptionRequest // Hello
|
||||||
LoginSuccess
|
ClientboundLoginSuccess // GameProfile
|
||||||
LoginCompression
|
ClientboundLoginCompression // LoginCompression
|
||||||
LoginPluginRequest
|
ClientboundLoginPluginRequest // CustomQuery
|
||||||
)
|
)
|
||||||
|
|
||||||
// Login Serverbound
|
// Login Serverbound
|
||||||
const (
|
const (
|
||||||
LoginStart = iota
|
ServerboundLoginStart ServerboundPacketID = iota // Hello
|
||||||
LoginEncryptionResponse
|
ServerboundLoginEncryptionResponse // Key
|
||||||
LoginPluginResponse
|
ServerboundLoginPluginResponse // CustomQueryAnswer
|
||||||
|
ServerboundLoginAcknowledged // LoginAcknowledged
|
||||||
)
|
)
|
||||||
|
|
||||||
// Status Clientbound
|
// Status Clientbound
|
||||||
const (
|
const (
|
||||||
StatusResponse = iota
|
ClientboundStatusResponse ClientboundPacketID = iota
|
||||||
StatusPongResponse
|
ClientboundStatusPongResponse
|
||||||
)
|
)
|
||||||
|
|
||||||
// Status Serverbound
|
// Status Serverbound
|
||||||
const (
|
const (
|
||||||
StatusRequest = iota
|
ServerboundStatusRequest ServerboundPacketID = iota
|
||||||
StatusPingRequest
|
ServerboundStatusPingRequest
|
||||||
|
)
|
||||||
|
|
||||||
|
// Configuration Clientbound
|
||||||
|
const (
|
||||||
|
ClientboundConfigCustomPayload ClientboundPacketID = iota
|
||||||
|
ClientboundConfigDisconnect
|
||||||
|
ClientboundConfigFinishConfiguration
|
||||||
|
ClientboundConfigKeepAlive
|
||||||
|
ClientboundConfigPing
|
||||||
|
ClientboundConfigRegistryData
|
||||||
|
ClientboundConfigResourcePack
|
||||||
|
ClientboundConfigUpdateEnabledFeatures
|
||||||
|
ClientboundConfigUpdateTags
|
||||||
|
)
|
||||||
|
|
||||||
|
// Configuration Serverbound
|
||||||
|
const (
|
||||||
|
ServerboundConfigClientInformation ServerboundPacketID = iota
|
||||||
|
ServerboundConfigCustomPayload
|
||||||
|
ServerboundConfigFinishConfiguration
|
||||||
|
ServerboundConfigKeepAlive
|
||||||
|
ServerboundConfigPong
|
||||||
|
ServerboundConfigResourcePack
|
||||||
)
|
)
|
||||||
|
|
||||||
// Game Clientbound
|
// Game Clientbound
|
||||||
|
Reference in New Issue
Block a user