Initialize Commit
This commit is contained in:
16
codec/component/map_color.go
Normal file
16
codec/component/map_color.go
Normal file
@ -0,0 +1,16 @@
|
||||
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"
|
||||
}
|
Reference in New Issue
Block a user