17 lines
297 B
Go
17 lines
297 B
Go
package component
|
|
|
|
import "git.konjactw.dev/patyhank/minego/codec/data/slot"
|
|
|
|
//codec:gen
|
|
type MapColor struct {
|
|
Color int32 `mc:"Int"` // RGB components encoded as integer
|
|
}
|
|
|
|
func (*MapColor) Type() slot.ComponentID {
|
|
return 36
|
|
}
|
|
|
|
func (*MapColor) ID() string {
|
|
return "minecraft:map_color"
|
|
}
|