8b3b55507f | ||
---|---|---|
gradle/wrapper | ||
src | ||
.gitignore | ||
CREDITS.txt | ||
LICENSE | ||
README.md | ||
build.gradle | ||
gradle.properties | ||
gradlew | ||
gradlew.bat |
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 Kotlinobject
classes as your main mod class and adds support forobject
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.