has Line Of Sight
Checks whether the living entity has block line of sight to another.
This uses the same algorithm that hostile mobs use to find the closest player.
Return
true if there is getClassById line of sight, false if not
Parameters
other
the entity to determine line of sight to