Add item DataComponent implements (part 2)
This commit is contained in:
15
level/component/mapcolor.go
Normal file
15
level/component/mapcolor.go
Normal file
@ -0,0 +1,15 @@
|
||||
package component
|
||||
|
||||
import pk "github.com/Tnze/go-mc/net/packet"
|
||||
|
||||
var _ DataComponent = (*MapColor)(nil)
|
||||
|
||||
type MapColor struct {
|
||||
// The RGB components of the color, encoded as an integer.
|
||||
pk.Int
|
||||
}
|
||||
|
||||
// ID implements DataComponent.
|
||||
func (MapColor) ID() string {
|
||||
return "minecraft:map_color"
|
||||
}
|
Reference in New Issue
Block a user