refactor package
This commit is contained in:
18
pkg/protocol/component/unbreakable.go
Normal file
18
pkg/protocol/component/unbreakable.go
Normal file
@ -0,0 +1,18 @@
|
||||
package component
|
||||
|
||||
import (
|
||||
"git.konjactw.dev/patyhank/minego/pkg/protocol/slot"
|
||||
)
|
||||
|
||||
//codec:gen
|
||||
type Unbreakable struct {
|
||||
// no fields
|
||||
}
|
||||
|
||||
func (*Unbreakable) Type() slot.ComponentID {
|
||||
return 4
|
||||
}
|
||||
|
||||
func (*Unbreakable) ID() string {
|
||||
return "minecraft:unbreakable"
|
||||
}
|
Reference in New Issue
Block a user