refactor package
This commit is contained in:
19
pkg/protocol/component/custom_name.go
Normal file
19
pkg/protocol/component/custom_name.go
Normal file
@ -0,0 +1,19 @@
|
||||
package component
|
||||
|
||||
import (
|
||||
"git.konjactw.dev/patyhank/minego/pkg/protocol/slot"
|
||||
"github.com/Tnze/go-mc/chat"
|
||||
)
|
||||
|
||||
//codec:gen
|
||||
type CustomName struct {
|
||||
Name chat.Message
|
||||
}
|
||||
|
||||
func (*CustomName) Type() slot.ComponentID {
|
||||
return 5
|
||||
}
|
||||
|
||||
func (*CustomName) ID() string {
|
||||
return "minecraft:custom_name"
|
||||
}
|
Reference in New Issue
Block a user