Fork of Emberwalker's Forgelin with some sprinkles on top.
Go to file
autaut03 30311f89e7 Fix missing language loader implementation info 2019-02-13 15:33:54 +02:00
gradle/wrapper Updated gradle wrapper to the newest version 2019-02-12 21:18:38 +02:00
src Fix ModLoadingContext being a singleton 2019-02-13 00:09:24 +02:00
.gitignore Initial Commit 2016-08-06 10:28:05 -04:00
CREDITS.txt Updated gradle wrapper to the newest version 2019-02-12 21:18:38 +02:00
LICENSE Add license 2016-12-15 19:49:18 -05:00
README.md Updated docs 2019-02-12 23:58:28 +02:00
build.gradle Fix missing language loader implementation info 2019-02-13 15:33:54 +02:00
gradle.properties Updated Kotlin to newer versions 2019-02-12 21:25:49 +02:00
gradlew Updated gradle wrapper to the newest version 2019-02-12 21:18:38 +02:00
gradlew.bat Updated gradle wrapper to the newest version 2019-02-12 21:18:38 +02:00

README.md

Forgelin

Fork of Emberwalker's Forgelin.

All versions can be found here.

Additions

  • Shades the Kotlin standard library, runtime, and reflect libraries so you don't have to.
  • Provides a Forge IModLanguageProvider for using Kotlin object classes as your main mod class and adds support for object instances for @Mod.EventBusSubscriber

Usage

Set up your default Kotlin dev environment (IDEA can help you with that), then in your build.gradle:

repositories {
	jcenter()
	maven { url 'https://maven.shadowfacts.net' }
}

dependencies {
	compile group: 'net.shadowfacts', name: 'Forgelin', version: 'LATEST_VERSION'
}

Note: You must have the jcenter() call in your repositories block. JCenter is used to host the Kotlin coroutines libraries.

Then in your mods.toml:

modLoader="kotlinfml"

[[dependencies.your_mod_name]]
    modId="forgelin"
    mandatory=true
    ordering="NONE"
    side="BOTH"
    # optionally, specify version range for Forgelin

Finally, replace FMLModLoadingContext references in your code with FMLKotlinModLoadingContext. For more info, check out test sources here.