Files
minego/codec/component/enchantments.go
2025-06-19 15:01:07 +08:00

22 lines
364 B
Go

package component
import "git.konjactw.dev/patyhank/minego/codec/data/slot"
//codec:gen
type Enchantments struct {
Enchantments []Enchantment
}
type Enchantment struct {
TypeID int32 `mc:"VarInt"`
Level int32 `mc:"VarInt"`
}
func (*Enchantments) Type() slot.ComponentID {
return 10
}
func (*Enchantments) ID() string {
return "minecraft:enchantments"
}