20 lines
286 B
Go
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"
|
|
}
|