20 lines
360 B
Go
20 lines
360 B
Go
package component
|
|
|
|
import (
|
|
"git.konjactw.dev/patyhank/minego/codec/data/slot"
|
|
pk "github.com/Tnze/go-mc/net/packet"
|
|
)
|
|
|
|
//codec:gen
|
|
type DamageResistant struct {
|
|
Types pk.Identifier // Tag specifying damage types
|
|
}
|
|
|
|
func (*DamageResistant) Type() slot.ComponentID {
|
|
return 24
|
|
}
|
|
|
|
func (*DamageResistant) ID() string {
|
|
return "minecraft:damage_resistant"
|
|
}
|