refactor package
This commit is contained in:
18
pkg/protocol/component/death_protection.go
Normal file
18
pkg/protocol/component/death_protection.go
Normal file
@ -0,0 +1,18 @@
|
||||
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"
|
||||
}
|
Reference in New Issue
Block a user