21 lines
455 B
Go
21 lines
455 B
Go
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{}
|
|
})
|
|
}
|