make color take an RGBLike instead of a TextColor

This commit is contained in:
Kieran Wallbanks 2021-03-04 17:26:10 +00:00
parent e3d135e1f2
commit aa7703c056

View File

@ -28,12 +28,12 @@ public class Color implements RGBLike {
}
/**
* Creates a color from an Adventure text color.
* Creates a color from an RGB-like color.
*
* @param textColor the text color
* @param rgbLike the color
*/
public Color(TextColor textColor) {
this(textColor.red(), textColor.blue(), textColor.green());
public Color(RGBLike rgbLike) {
this(rgbLike.red(), rgbLike.blue(), rgbLike.green());
}
/**