4.14.0
Compatibility
Changes
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.
Supplementary resources
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:mV8EvSTx:EjMqBNu0"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:mV8EvSTx:EjMqBNu0"
}

