Skip to content

TexBlock/Integration

 
 

Repository files navigation

Integration

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.

How to use

Core APIs

  • IntegrationExecutor: Safely run integration code only when target mod loaded.
  • EntryPointManager: Customizable entry points based on Annotation (Forge/NeoForge) and EntryPoint (Fabric).

Examples

Integration with example-mod

IntegrationExecutor.runWhenLoad("example-mod",()->()->{
        //Your code here.
        });

Customize entry point

@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");

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%