pocketmine\entity\Living::hasLineOfSight PHP Метод

hasLineOfSight() публичный Метод

public hasLineOfSight ( Entity $entity )
$entity Entity
    public function hasLineOfSight(Entity $entity)
    {
        //TODO: head height
        return true;
        //return $this->getLevel()->rayTraceBlocks(Vector3::createVector($this->x, $this->y + $this->height, $this->z), Vector3::createVector($entity->x, $entity->y + $entity->height, $entity->z)) === null;
    }