
Integration!
Introduction
Integration! is a helper library designed to simplify the integration process between different Minecraft mods. Developers can use this mod as a convenient tool when creating compatibility between their addons.
Technical Features
The main advantage of this library lies in its versatility - it is built on mod loader APIs, allowing it to be used across different game versions provided the corresponding loader is supported.
Core Functionality
Integration Approach
The library provides the following key APIs:
IntegrationExecutor
- allows safe execution of integration code only after the target mod is loadedEntryPointManager
- entry point system with annotation support for Forge/NeoForge and standard entry points for Fabric
Practical Usage Examples
Working with example-mod
IntegrationExecutor.runWhenLoad("example-mod", ()->()-> {
// Your integration code here
});
Customizing Entry Point
@EntryPointProvider(slug = "example-mod")
public class ExampleModIntegration implements IntegrationEntryPoint {
// Your code here
}
Fabric Configuration
{
// Other parts
"entrypoints": {
"example-mod": [
"xxx.ExampleModIntegration"
]
},
}
Getting Entry Points
EntryPointManager.getEntryPoints("example-mod");
Project Integration
To include the library in your project, use the following Maven sources:
maven { url "https://maven.kessokuteatime.work/releases" }
maven { url "https://jitpack.io" }
This configuration will ensure proper connection of all necessary library components when developing compatible modifications.