package server import ( "github.com/Tnze/go-mc/data/packetid" pk "github.com/Tnze/go-mc/net/packet" ) //codec:gen type PlayerAction struct { Status int32 `mc:"VarInt"` Location pk.Position Face int8 Sequence int32 `mc:"VarInt"` } func (*PlayerAction) PacketID() packetid.ServerboundPacketID { return packetid.ServerboundPlayerAction } func init() { registerPacket(packetid.ServerboundPlayerAction, func() ServerboundPacket { return &PlayerAction{} }) }