codecs update
This commit is contained in:
20
codec/packet/login/client/custom_query.go
Normal file
20
codec/packet/login/client/custom_query.go
Normal file
@ -0,0 +1,20 @@
|
||||
package client
|
||||
|
||||
import "github.com/Tnze/go-mc/data/packetid"
|
||||
|
||||
//codec:gen
|
||||
type LoginCustomQuery struct {
|
||||
MessageID int32 `mc:"VarInt"`
|
||||
Channel string `mc:"Identifier"`
|
||||
Data []byte `mc:"ByteArray"`
|
||||
}
|
||||
|
||||
func (LoginCustomQuery) PacketID() packetid.ClientboundPacketID {
|
||||
return packetid.ClientboundLoginCustomQuery
|
||||
}
|
||||
|
||||
func init() {
|
||||
registerPacket(packetid.ClientboundLoginCustomQuery, func() ClientboundPacket {
|
||||
return &LoginCustomQuery{}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user