▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Integration
Integration

Integration

Library for better mod integrations.

Оцените первым
654
3

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

  • 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

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,不然重生会打死我的(((

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

1.21.x1.20.x1.19.x1.18.x1.17.x1.16.x1.15.x1.14.x1.13.x

Платформы

Поддерживаемые окружения

Клиент и сервер

Ссылки


Создатели

Детали

Лицензия:
Опубликован:10 месяцев назад
Обновлён:10 месяцев назад
Главная