squeek502 / AppleCore

An API for modifying the food and hunger mechanics of Minecraft
The Unlicense
55 stars 24 forks source link

Another Question: #104

Closed lilgandhi1199 closed 6 years ago

lilgandhi1199 commented 6 years ago

I see you can set the current hunger and saturation but is it possible to simply grab the current hunger and saturation?

lilgandhi1199 commented 6 years ago

I would appreciate your help because right now I am trying to track Exhaustion/Food/Death events because I see this as the only way to know the current hunger and saturation

squeek502 commented 6 years ago

That's possible with just vanilla Minecraft: player.getFoodStats().getFoodLevel() player.getFoodStats().getSaturationLevel()