
Kotlin for Forge Unofficial Extended Support
This is an unofficial library version specifically created for Minecraft 1.16.5, providing the latest Kotlin libraries for this game version. If you prefer to use the original modification version, it's recommended to find it on Modrinth.
Main Purpose
The library is designed for developing modifications using the Kotlin programming language. It implements integration of Kotlin libraries into the Forge environment, provides KotlinLanguageProvider for loading @Mod annotations, and AutoKotlinEventBusSubscriber for processing declarations with @EventBusSubscriber annotation. Additionally contains various useful utilities and constants.
Package Contents
The current Kotlin for Forge 1.8.0 version includes Kotlin 1.4.21, Kotlin coroutines 1.4.2, Kotlin JSON serialization 1.0.1, and Jetbrains annotations 20.1.0.
Target Audience
Regular players don't need this modification - it's an auxiliary library required for the operation of other mods created using Kotlin.
Differences from Kottle
Unlike the Kottle library, starting from version 1.2.0, this project implements its own IEventBus system supporting IEventBus#addListener
and IEventBus#addGenericListener
functions with method references.
Information for Developers
Usage instructions for the library can be found in the corresponding section of the project on GitHub. However, developers are not required to use all provided functionality - using only built-in Kotlin libraries is acceptable.