Kotlin for Forge

Mods
26,758 Downloads Last Updated: Jun 24, 2020 Game Version: 1.16.1

Used to make mods with the Kotlin programming language. Works by shading the Kotlin libraries, providing KotlinLanguageProvider to load @Mod object declarations, providing AutoKotlinEventBusSubscriber to load @EventBusSubscriber declarations, and providing useful utility functions and constants.

As of 1.3.0, provides the Kotlin 1.4-M2 prerelease, 1.3.7 corroutines, and 19.0.0 Jetbrains annotations libraries.

 

If you're not a mod developer, this is a dependency mod.

 

Unlike Kottle, this library (as of 1.2.0) provides its own implementation of IEventBus that supports IEventBus#addListener and IEventBus#addGenericListener with function references.

 

Information for how to implement can be found here.

If you'd like to ask for help or suggest something, feel free to do so on the Kotlin for Forge discord server.

Comments

Posts Quoted: