Follow vanilla standards when eating food
iguanaman opened this issue ยท 2 comments
Another mod compatibility thing;
When BOP food is eaten you do:
player.getFoodStats().addStats(2, 0.5F);
Rather than the vanilla method:
par3EntityPlayer.getFoodStats().addStats(this);
It uses the getHealAmount and getSaturationModifier methods of the food's class to determine the values. So, you can still return unique value for each food in those methods.
I need this for compatibility with Hunger Overhaul, there's not much I can do on my end unfortunately, as it relies on mod's that add food following the vanilla standard.
That won't work since those methods don't provide us with a way of knowing what metadata the food has. This is the reason why we don't do it the vanilla way too.