[Feature Request] Color Codec
Closed this issue · 0 comments
RedstoneWizard08 commented
Is your feature request related to a problem? Please describe.
I'm trying to make a codec that has a Color in it.
Describe the solution you'd like
I'd like a static property, CODEC
, on Color
to exist.
Describe alternatives you've considered
public static Codec<Color> COLOR_CODEC = Codec.INT.xmap(Color::new, Color::getRGB);
Additional context
I'll probably make a PR.