summaryrefslogtreecommitdiff
path: root/archenemyexample
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2023-12-10 15:43:14 +0100
committerLinnea Gräf <nea@nea.moe>2023-12-10 15:43:14 +0100
commit17f0faaccb0db837a64b6ce7cecff7f8ab048410 (patch)
treed6dcd51e43d16873c14a696c565c0c343440b19e /archenemyexample
parent67bf79815ec27c8b813480c11a45f35ef502fe5b (diff)
downloadarchenemy-17f0faaccb0db837a64b6ce7cecff7f8ab048410.tar.gz
archenemy-17f0faaccb0db837a64b6ce7cecff7f8ab048410.tar.bz2
archenemy-17f0faaccb0db837a64b6ce7cecff7f8ab048410.zip
Add crude mappings/transformer support
Diffstat (limited to 'archenemyexample')
-rw-r--r--archenemyexample/build.gradle.kts8
-rw-r--r--archenemyexample/src/forgeMain/kotlin/doStuff.kt2
2 files changed, 8 insertions, 2 deletions
diff --git a/archenemyexample/build.gradle.kts b/archenemyexample/build.gradle.kts
index eb0d9ff..6ed1dbe 100644
--- a/archenemyexample/build.gradle.kts
+++ b/archenemyexample/build.gradle.kts
@@ -19,7 +19,13 @@ kotlin {
compilations.named("main").get().run {
defaultSourceSet.dependsOn(allJvm)
this.dependencies {
- implementation(mojang.minecraft("1.8.9", MCSide.CLIENT))
+ val mappedMinecraft = mojang.mapJar(
+ mojang.minecraft("1.20.2", MCSide.CLIENT) as ModuleDependency,
+ mojang.officialMappings("1.20.2", MCSide.CLIENT),
+ "official",
+ "named"
+ )
+ implementation(mappedMinecraft)
}
}
}
diff --git a/archenemyexample/src/forgeMain/kotlin/doStuff.kt b/archenemyexample/src/forgeMain/kotlin/doStuff.kt
index 659bc2b..1e773ef 100644
--- a/archenemyexample/src/forgeMain/kotlin/doStuff.kt
+++ b/archenemyexample/src/forgeMain/kotlin/doStuff.kt
@@ -1,3 +1,3 @@
actual fun doStuff(args: Int) {
-
+ val x: a = TODO()
} \ No newline at end of file