Computes the comparator output of a lectern based on its screen.
Computes the comparator output based on the screen's inventory.