mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-30 07:27:46 +02:00
make color take an RGBLike instead of a TextColor
This commit is contained in:
parent
e3d135e1f2
commit
aa7703c056
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user