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

NilKit API

NilKit API provides reusable utilities for mods built around NilLoader, with a particular focus on legacy Minecraft development.

Оцените первым
352
2

NilKit API

An independent utility API and developer toolkit for mods built with NilLoader.

Important

NilKit is not part of the official NilLoader project and is not required to use NilLoader.

NilLoader is maintained separately at:
https://git.sleeping.town/Nil/NilLoader

NilKit provides reusable APIs and tooling for legacy Minecraft mod development, with a focus on reducing boilerplate around events, reflection, mappings, metadata, networking, and development utilities.

NilKit 4.1.0 targets Java 8 bytecode and does not require a hard runtime link to a specific Minecraft JAR for its core APIs. Minecraft-specific functionality remains dependent on the mappings and structure of the target game version.

Features

Events and lifecycle

  • Lightweight event bus
  • Cancellable events
  • Listener priorities
  • premain / hijack lifecycle helpers
  • Typed and annotation-based listeners

Reflection and legacy Minecraft tooling

  • Reflection helpers for version-dependent Minecraft code
  • SRG/CSRG mapping utilities
  • Mapping inspection, reversal, chaining, and lookup
  • Integration with the external MinecraftRemapping mapping repository during development

KDL

NilKit includes a general-purpose KDL parser and writer and can use KDL for richer project/mod metadata.

KDL support is optional. NilKit does not require NilLoader mods to use KDL, and standard NilLoader metadata remains fully supported.

Example:

nilmod {
  name "My Mod"
  description "Example mod"
  authors "Author"
  version "1.0.0"
}

entrypoints {
  premain "com.example.MyPremain"
  hijack "com.example.MyHijack"
}

nilkit {
  requires "nilloader" "nilkit"
  load_after "nilkit"

  icon "assets/mymod/icon.png"
  modurl "/mod/my-mod"
  sourceurl "https://github.com/example/my-mod"

  license "MIT"
  credits "Author"
}

Networking

  • Java NIO client/server utilities
  • Packet registry and codecs
  • Optional Minecraft-facing network helpers

Developer toolbox

The optional -all.jar also bundles several developer libraries without relocating their public packages:

  • Byte Buddy
  • GEB
  • ClassGraph
  • SnakeYAML

The normal NilKit artifact does not require these libraries at runtime.

Gradle

repositories {
    maven {
        url = uri("https://repo.tamkungz.me")
    }
}

dependencies {
    implementation "me.tamkungz.nilkit:nilkit:4.1.0"
}

Documentation

Full documentation and development information are available in the GitHub repository:

https://github.com/NilKitAPI/NilKit-API/tree/main/docs

NilLoader

NilKit is designed to complement NilLoader, not replace it.

NilLoader itself, its loading lifecycle, and its upstream development remain separate from NilKit.

  • NilLoader — official repository
  • NilLoader — GitHub mirror

License

NilKit is licensed under LGPL-3.0-or-later.

Партнёрский материал

Как поиграть с друзьями с модом NilKit API?

Мод NilKit API куда интереснее в компании: поднимите сервер Майнкрафт с уже установленным модом, позовите друзей и играйте по своим правилам. Хостинг Майнкрафт для мода NilKit API будет готов за пару минут - BungeeHost сделает всё за вас.

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

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

Minecraft: Java Edition

26.1.x1.21.x1.20.x1.19.x1.18.x1.17.x1.16.x1.15.x1.14.x1.13.x1.12.x1.11.x1.10.x1.9.x1.8.x1.7.x1.6.x1.5.x1.4.x1.3.x1.2.x

Платформы

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

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

Ссылки

Создатели

Детали

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