Add registry receiving function

This commit is contained in:
Tnze
2024-06-16 02:12:56 +08:00
parent 40b32dfdd7
commit 19945a6d0b
7 changed files with 158 additions and 27 deletions

View File

@ -10,6 +10,7 @@ import (
"github.com/Tnze/go-mc/net"
pk "github.com/Tnze/go-mc/net/packet"
"github.com/Tnze/go-mc/net/queue"
"github.com/Tnze/go-mc/registry"
)
// Client is used to access Minecraft server
@ -18,9 +19,9 @@ type Client struct {
Auth Auth
// These are filled when login process
Name string
UUID uuid.UUID
ConfigData
Name string
UUID uuid.UUID
Registries registry.NetworkCodec
// Ingame packet handlers
Events Events