Initialize Commit
This commit is contained in:
21
codec/component/enchantments.go
Normal file
21
codec/component/enchantments.go
Normal file
@ -0,0 +1,21 @@
|
||||
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"
|
||||
}
|
Reference in New Issue
Block a user