aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthedarkcolour <30441001+thedarkcolour@users.noreply.github.com>2019-12-19 16:39:11 -0800
committerthedarkcolour <30441001+thedarkcolour@users.noreply.github.com>2019-12-19 16:39:11 -0800
commit77979e454e8acd6dd2ab6f4fe9ee186ec644c320 (patch)
treee2a8c152a9a51a47c8318df126054b0f7725b346
parentc19343f40c4df03a88b68f12b286ee8ea747bcb8 (diff)
downloadKotlinForForge-77979e454e8acd6dd2ab6f4fe9ee186ec644c320.tar.gz
KotlinForForge-77979e454e8acd6dd2ab6f4fe9ee186ec644c320.tar.bz2
KotlinForForge-77979e454e8acd6dd2ab6f4fe9ee186ec644c320.zip
Update 1.0.0
-rw-r--r--README.md17
1 files changed, 11 insertions, 6 deletions
diff --git a/README.md b/README.md
index f28b329..fe29422 100644
--- a/README.md
+++ b/README.md
@@ -3,12 +3,11 @@ Makes Kotlin forge-friendly by doing the following:
- Provides the Kotlin libraries.
- Provides `KotlinLanguageProvider` to allow usage of object declarations as @Mod targets.
- Provides `AutoKotlinEventBusSubscriber` to allow usage of object declarations as @Mod.EventBusSubscriber targets.
-- Provides useful top-level utility functions and constants
+- Provides useful utility functions and constants
-To implement in your project, add the following to your build.gradle:
+To implement in your project, paste the following into your build.gradle:
```groovy
buildscript {
- // ...
dependencies {
// Make sure to use the correct version
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.61"
@@ -30,18 +29,24 @@ dependencies {
}
compileKotlin {
+ // Needed if you use Forge.kt
kotlinOptions {
jvmTarget = '1.8'
}
+
+ // Required to run in dev environment
+ copy {
+ from "$buildDir/classes/kotlin/main" into "$buildDir/classes/java/main"
+ }
}
```
Then, add the following to your mods.toml file:
```toml
modLoader="kotlinforforge"
+# Change this if you require a certain version of KotlinForForge
loaderVersion="[1,)"
```
Use
-```thedarkcolour.kotlinforforge.KotlinModLoadingContext```
-instead of
-```net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext```
+```thedarkcolour.kotlinforforge.forge.MOD_CONTEXT```
+instead of ```net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext```