19 lines
400 B
Go
19 lines
400 B
Go
package server
|
|
|
|
import "github.com/Tnze/go-mc/data/packetid"
|
|
|
|
//codec:gen
|
|
type AcceptTeleportation struct {
|
|
TeleportID int32 `mc:"VarInt"`
|
|
}
|
|
|
|
func (*AcceptTeleportation) PacketID() packetid.ServerboundPacketID {
|
|
return packetid.ServerboundAcceptTeleportation
|
|
}
|
|
|
|
func init() {
|
|
registerPacket(packetid.ServerboundAcceptTeleportation, func() ServerboundPacket {
|
|
return &AcceptTeleportation{}
|
|
})
|
|
}
|