package command import ( "git.konjactw.dev/falloutBot/go-mc/data/packetid" pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) type Client interface { SendPacket(p pk.Packet) } // ClientJoin implement server.Component for Graph func (g *Graph) ClientJoin(client Client) { client.SendPacket(pk.Marshal( packetid.ClientboundCommands, g, )) }