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

20 lines
286 B
Go

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