Yeah, ``getLineOfSight()`` will get you all the blocks along the line (with the ability to define what should be considered transparent - a ``Predicate<Block>`` which simply returns false would pick up everything)