refactor package
This commit is contained in:
18
pkg/protocol/packet/configuration/server/keep_alive.go
Normal file
18
pkg/protocol/packet/configuration/server/keep_alive.go
Normal file
@ -0,0 +1,18 @@
|
||||
package server
|
||||
|
||||
import "github.com/Tnze/go-mc/data/packetid"
|
||||
|
||||
//codec:gen
|
||||
type ConfigKeepAlive struct {
|
||||
ID int64
|
||||
}
|
||||
|
||||
func (ConfigKeepAlive) PacketID() packetid.ServerboundPacketID {
|
||||
return packetid.ServerboundConfigKeepAlive
|
||||
}
|
||||
|
||||
func init() {
|
||||
registerPacket(packetid.ServerboundConfigKeepAlive, func() ServerboundPacket {
|
||||
return &ConfigKeepAlive{}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user