My textbook provides intuition of Planck's Quantum theory which is copied right next.
Max Planck proposed that emission or absorption of energy in a blackbody is discontinuous. It is absorbed or emitted in packets $hf$ or integral multiple of these packets $nhf$. Each packet is called Quantum.
Energy lost or gained is given by;
$E=hf$ where $f$ is the frequency of radiations.
I think the equation which is consistent with the definition above is E=nhf. If not, please explain which thing I am missing.
I have searched it on internet but explanation is given in terms of photon however I want to understand how does $E=hf$ is consistent with the brief description given in my book.