17 lines
254 B
Go
17 lines
254 B
Go
package component
|
|
|
|
import "git.konjactw.dev/patyhank/minego/codec/data/slot"
|
|
|
|
//codec:gen
|
|
type Damage struct {
|
|
Damage int32 `mc:"VarInt"`
|
|
}
|
|
|
|
func (*Damage) Type() slot.ComponentID {
|
|
return 3
|
|
}
|
|
|
|
func (*Damage) ID() string {
|
|
return "minecraft:damage"
|
|
}
|