This is a library mod to help other mods make integration easier.
This mod is based on loaders' api, not Minecraft's. So it can run on any versions if the loader supported.
- Use
maven { url "https://maven.kessokuteatime.work/releases" }. for more info, see https://maven.kessokuteatime.work/#/releases/com/iafenvoy/integration - Use
maven { url "https://jitpack.io" }. for more info, see https://jitpack.io/#IAFEnvoy/Integration
IntegrationExecutor: Safely run integration code only when target mod loaded.EntryPointManager: Customizable entry points based on Annotation (Forge/NeoForge) and EntryPoint (Fabric).
IntegrationExecutor.runWhenLoad("example-mod",()->()->{
//Your code here.
});@EntryPointProvider(slug = "example-mod")
public class ExampleModIntegration implements IntegrationEntryPoint {
//Your code here
}//fabric.mod.json
{
//Other parts
"entrypoints": {
"example-mod": [
"xxx.ExampleModIntegration"
]
},
}Get this entrypoint:
EntryPointManager.getEntryPoints("example-mod");