package server import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type Swing struct { Hand int32 `mc:"VarInt"` } func (*Swing) PacketID() packetid.ServerboundPacketID { return packetid.ServerboundSwing } func init() { registerPacket(packetid.ServerboundSwing, func() ServerboundPacket { return &Swing{} }) }