This will work for sure only with combustion engines. And I was mistaken, it is not front of the engine, but an arbitrary top, bottom is for water, I just had my engine in a default position facing top. Also with magmatic engine you can extract lava from all sides except front.