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