Nutrition Unofficial Extended Life

Nutrition Unofficial Extended Life

Mod

An unoffical fork of Nutrition(A Minecraft mod that ensures you eat healthy.)!

Client and server

1,031 downloads
5 followers
Follow Save

What's Changed

  • New API: ItemStackCompareType

    Modders can specify how to compare 2 ItemStacks. FOR USERS: now ItemStack comparison ignores the meta values unless a meta value is specified.

  • New API: NutrientApplicationPhase

    Foods that are eaten immediately can now apply the nutrients to the player (with NutrientApplicationPhase.ON_RIGHT_CLICK).

  • New API: NutritionUtil.getNutrientByName

    Modders can get one nutrient by name.

  • New API: INutrient.isContainedIn

    Modders can know whether the nutrient is contained in the item.

  • New API: INutrient.registerFoodItem

    Modders 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.setAlwaysEdible

    Fix bug that setAlwaysEdible of INutritionFood created by INutritionFoodAdapter is 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.

Project members

KatatsumuriPan

Member

Details

Licensed MIT
Published 2 years ago
Updated 8 months ago