Posted May 7, 201411 yr https://gist.github.com/anonymous/974e905d5d47b782b4b9 I have an EntityPlayer called friend. When I call friend.getFoodStats().getFoodLevel() the result is always 20. friend.getFoodStats().needFood() always returns false. This happens whether the player has a full hunger bar and an empty hunger bar. Calling friend.getHealth() does work. I just want to be able to find out the hunger of a player. edit: forge version 1.7.2-10.12.1.1065 edit: Thank you for pointing me in the right direction.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.