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