refactor package
This commit is contained in:
19
pkg/protocol/packet/configuration/client/store_cookie.go
Normal file
19
pkg/protocol/packet/configuration/client/store_cookie.go
Normal file
@ -0,0 +1,19 @@
|
||||
package client
|
||||
|
||||
import "github.com/Tnze/go-mc/data/packetid"
|
||||
|
||||
//codec:gen
|
||||
type ConfigStoreCookie struct {
|
||||
Key string `mc:"Identifier"`
|
||||
Payload []int8
|
||||
}
|
||||
|
||||
func (ConfigStoreCookie) PacketID() packetid.ClientboundPacketID {
|
||||
return packetid.ClientboundConfigStoreCookie
|
||||
}
|
||||
|
||||
func init() {
|
||||
registerPacket(packetid.ClientboundConfigStoreCookie, func() ClientboundPacket {
|
||||
return &ConfigStoreCookie{}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user