@Override
  default @Range(from = 0x0, to = 0xff) int red() {
    return (this.value() >> 16) & 0xff;
  }
Get the red component of the text colour.

@return the red component, in the range [0x0, 0xff]
@since 4.0.0
api/src/main/java/net/kyori/adventure/text/format/TextColor.java