refactor package
This commit is contained in:
18
pkg/protocol/packet/configuration/client/ping.go
Normal file
18
pkg/protocol/packet/configuration/client/ping.go
Normal file
@ -0,0 +1,18 @@
|
||||
package client
|
||||
|
||||
import "github.com/Tnze/go-mc/data/packetid"
|
||||
|
||||
//codec:gen
|
||||
type ConfigPing struct {
|
||||
ID int32
|
||||
}
|
||||
|
||||
func (ConfigPing) PacketID() packetid.ClientboundPacketID {
|
||||
return packetid.ClientboundConfigPing
|
||||
}
|
||||
|
||||
func init() {
|
||||
registerPacket(packetid.ClientboundConfigPing, func() ClientboundPacket {
|
||||
return &ConfigPing{}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user