Union chief Sharon Graham said the "public will know who to blame" if energy jobs are not replaced as the country transitions to net zero.