mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 17:59:41 +00:00
Merge commit '260869c0d5904401178419c99e1f26e32b6ba07e'
This commit is contained in:
commit
ebce102167
@ -42,6 +42,12 @@ class Position extends Vector3{
|
|||||||
$this->setWorld($world);
|
$this->setWorld($world);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param Vector3 $pos
|
||||||
|
* @param World|null $world
|
||||||
|
*
|
||||||
|
* @return Position
|
||||||
|
*/
|
||||||
public static function fromObject(Vector3 $pos, ?World $world = null){
|
public static function fromObject(Vector3 $pos, ?World $world = null){
|
||||||
return new Position($pos->x, $pos->y, $pos->z, $world);
|
return new Position($pos->x, $pos->y, $pos->z, $world);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user