Files
go-mc/server/command/component.go
patyhank 185020e31c
Some checks failed
CodeQL / Analyze (go) (push) Has been cancelled
Go / Test (1.22) (push) Has been cancelled
Go / Test (^1.22) (push) Has been cancelled
Squashed below commits
nbt chat message

fixes some bug

chunk temp

relocate module

items id
2025-08-27 20:29:40 +08:00

18 lines
350 B
Go

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,
))
}