So, you wanna use Kotlin in your Forge mod? Well there’s good news, I’ve just released Forgelin, a fork of Emberwalker’s Forgelin, a library that provides utilities for using Kotlin with Minecraft/Forge.
Forgelin provides a Kotlin langauge adapter that allows your main-mod class to be a object
. In order to use the language adapter, you must specify the modLanguageAdapter
property in your @Mod
annotation to be net.shadowfacts.forgelin.KotlinAdapter
.