Probing entanglement across the energy spectrum of a hard-core Bose-Hubbard lattice