17 lines
289 B
Go
17 lines
289 B
Go
package component
|
|
|
|
import "git.konjactw.dev/patyhank/minego/codec/data/slot"
|
|
|
|
//codec:gen
|
|
type DeathProtection struct {
|
|
Effects []ConsumeEffect
|
|
}
|
|
|
|
func (*DeathProtection) Type() slot.ComponentID {
|
|
return 32
|
|
}
|
|
|
|
func (*DeathProtection) ID() string {
|
|
return "minecraft:death_protection"
|
|
}
|