mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 00:39:45 +00:00
Color: add missing return type annotation for fromABGR()
This commit is contained in:
parent
d1e56c4611
commit
ad4a211cba
@ -192,6 +192,11 @@ class Color{
|
||||
return ($this->a << 24) | ($this->b << 16) | ($this->g << 8) | $this->r;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $code
|
||||
*
|
||||
* @return Color
|
||||
*/
|
||||
public static function fromABGR(int $code){
|
||||
return new Color($code & 0xff, ($code >> 8) & 0xff, ($code >> 16) & 0xff, ($code >> 24) & 0xff);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user