Files
minego/pkg/protocol/component/custom_data.go
2025-08-22 05:14:59 +08:00

20 lines
311 B
Go

package component
import (
"git.konjactw.dev/patyhank/minego/pkg/protocol/slot"
"github.com/Tnze/go-mc/nbt"
)
//codec:gen
type CustomData struct {
Data nbt.RawMessage `mc:"NBT"`
}
func (*CustomData) Type() slot.ComponentID {
return 0
}
func (*CustomData) ID() string {
return "minecraft:custom_data"
}