I am not sure on how to get how much hunger it refills, but you would make an array where it saves $player=>$hunger.
Hunger was not what I wanted I'd like to make a cooldown plugin for godapples. There's a new event called 'EntityEatEvent' but idk how I could use it.