What's Changed
-
New API:
ItemStackCompareTypeModders can specify how to compare 2 ItemStacks. FOR USERS: now ItemStack comparison ignores the meta values unless a meta value is specified.
-
New API:
NutrientApplicationPhaseFoods that are eaten immediately can now apply the nutrients to the player (with NutrientApplicationPhase.ON_RIGHT_CLICK).
-
New API:
NutritionUtil.getNutrientByNameModders can get one nutrient by name.
-
New API:
INutrient.isContainedInModders can know whether the nutrient is contained in the item.
-
New API:
INutrient.registerFoodItemModders can register the item to the nutrient, without adding to the nutrient config files.
-
New support: Industrial Craft (IC2)
ic2:filled_tin_can
-
Bug fix:
INutritionFood.setAlwaysEdibleFix bug that
setAlwaysEdibleofINutritionFoodcreated byINutritionFoodAdapteris not called.
*Do not use any classes outside the API because they can be change.
What's Changed
-
New config file: food_hint.json
This is an easy eay to specify the heal amount of food items that don't implements INutritionFood .
-
New API interface:
INutrition
It's the interface of Nutrition for the API.
(Don't create a class that implements INutrition.)
-
New API utility class:
NutritionUtil
Utility class NutritionUtil is added to the API.
-
New API :
INutritionFoodAdapter
This is for an addon to NutritionUEL.
There are some modded items that don't extend INutritionFood.
Create a class that implements INutritionFoodAdapter and register it to treat the items as INutritionFood.
-
New support: ExtraPlanets
extraplanets:canned_food
*Do not use any classes outside the API because they can be change.
version 4.13.1 :
- Fix backward compatibility. *New feature nutrition-scaling is not available through the old APIs.
version 4.13.0 :
- Add "scale" option to Nutrients.
- Add nutrition-food command.
- Add java docs of the API.
version 4.12.0 :
- Change API signature(INutritionFood)!
version 4.11.0 :
- Add an API: INutritionFood.
version 4.13.0 :
- Add "scale" option to Nutrients.
- Add nutrition-food command.
- Add java docs of the API.
version 4.12.0 :
- Change API signature(INutritionFood)!
version 4.11.0 :
- Add an API: INutritionFood.
version 4.12.0 :
- Change API signature(INutritionFood)!
version 4.11.0 :
- Add an API: INutritionFood.
version 4.11.0 :
- Add an API: INutritionFood.



