Integration 图标

Integration

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 0.2
本资源为搬运资源,原资源地址: https://modrinth.com/mod/integration
资源信息

Minecraft 版本: 1.20.2 1.20.3 1.20.4 1.20.5 1.20.6 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8

平台: neoforge

标签: library utility

资源介绍

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

请不要把这个mod搬到mcmod.cn,不然重生会打死我的(((

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
craftable totem of undying

价格:0 墨喵币
下载量:0

查看详情
Shield Tweak

价格:0 墨喵币
下载量:0

查看详情
ItzRealMes Overlay

价格:0 墨喵币
下载量:0

查看详情
AnimaBossBar

价格:0 墨喵币
下载量:0

查看详情