pocketmine\level\Location::fromObjectAdd PHP Method

fromObjectAdd() public method

public fromObjectAdd ( Vector3 $pos, $x, $y, $z )
$pos pocketmine\math\Vector3
    public function fromObjectAdd(Vector3 $pos, $x, $y, $z)
    {
        if ($pos instanceof Location) {
            $this->yaw = $pos->yaw;
            $this->pitch = $pos->pitch;
        }
        parent::fromObjectAdd($pos, $x, $y, $z);
        return $this;
    }