pocketmine\entity\Entity::setLocation PHP Method

setLocation() public method

public setLocation ( Location $pos )
$pos pocketmine\level\Location
    public function setLocation(Location $pos)
    {
        if ($this->closed) {
            return false;
        }
        $this->setPositionAndRotation($pos, $pos->yaw, $pos->pitch);
        return true;
    }