20 lines
388 B
Go
20 lines
388 B
Go
package server
|
|
|
|
import "github.com/Tnze/go-mc/data/packetid"
|
|
|
|
//codec:gen
|
|
type LoginKey struct {
|
|
SharedSecret []byte `mc:"ByteArray"`
|
|
VerifyToken []byte `mc:"ByteArray"`
|
|
}
|
|
|
|
func (LoginKey) PacketID() packetid.ServerboundPacketID {
|
|
return packetid.ServerboundLoginKey
|
|
}
|
|
|
|
func init() {
|
|
registerPacket(packetid.ServerboundLoginKey, func() ServerboundPacket {
|
|
return &LoginKey{}
|
|
})
|
|
}
|