mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 00:39:45 +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);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Vector3 $pos
|
||||
* @param Level|null $level
|
||||
*
|
||||
* @return Position
|
||||
*/
|
||||
public static function fromObject(Vector3 $pos, Level $level = null){
|
||||
return new Position($pos->x, $pos->y, $pos->z, $level);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user