package server import "github.com/Tnze/go-mc/data/packetid" //codec:gen type ChatCommand struct { Command string } func (*ChatCommand) PacketID() packetid.ServerboundPacketID { return packetid.ServerboundChatCommand } func init() { registerPacket(packetid.ServerboundChatCommand, func() ServerboundPacket { return &ChatCommand{} }) }