20 lines
297 B
Go
20 lines
297 B
Go
package component
|
|
|
|
import (
|
|
"git.konjactw.dev/patyhank/minego/codec/data/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"
|
|
}
|