
Integration
This mod is a library designed to simplify the integration process between various Minecraft modifications. It serves as a helper tool for developers, allowing them to create compatible add-ons more effectively.
A key feature of this library is that it's built on loader APIs rather than directly on Minecraft. Thanks to this approach, the mod can work on any game version provided the used loader supports it.
Core Features
The library provides two key APIs for developers:
IntegrationExecutor
- allows safely executing integration code only when the target mod is loadedEntryPointManager
- offers customizable entry points based on annotations (Forge/NeoForge) and EntryPoint (Fabric)
Usage Examples
Integration with example-mod
IntegrationExecutor.runWhenLoad("example-mod",()->()->{
//Your code here
});
Custom entry point configuration
@EntryPointProvider(slug = "example-mod")
public class ExampleModIntegration implements IntegrationEntryPoint {
//Your code here
}
//fabric.mod.json
{
//Other parts
"entrypoints": {
"example-mod": [
"xxx.ExampleModIntegration"
]
},
}
Getting entry points:
EntryPointManager.getEntryPoints("example-mod");