mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 16:49:53 +00:00
Position: populate missing return type information for fromObject()
This commit is contained in:
parent
9135877da1
commit
260869c0d5
@ -43,6 +43,12 @@ class Position extends Vector3{
|
|||||||
$this->setLevel($level);
|
$this->setLevel($level);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param Vector3 $pos
|
||||||
|
* @param Level|null $level
|
||||||
|
*
|
||||||
|
* @return Position
|
||||||
|
*/
|
||||||
public static function fromObject(Vector3 $pos, Level $level = null){
|
public static function fromObject(Vector3 $pos, Level $level = null){
|
||||||
return new Position($pos->x, $pos->y, $pos->z, $level);
|
return new Position($pos->x, $pos->y, $pos->z, $level);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user