pocketmine\entity\Entity::setPositionAndRotation PHP Method

setPositionAndRotation() public method

public setPositionAndRotation ( Vector3 $pos, $yaw, $pitch )
$pos pocketmine\math\Vector3
    public function setPositionAndRotation(Vector3 $pos, $yaw, $pitch)
    {
        if ($this->setPosition($pos) === true) {
            $this->setRotation($yaw, $pitch);
            return true;
        }
        return false;
    }