From 4d778b97ee33485af5236ad6bdfdd2949fd69cc2 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Wed, 19 Jun 2024 00:08:30 +0200 Subject: fix stuff for pauline --- .../src/forgeMain/kotlin/moe/nea/aee/forge/Main.kt | 21 +++++++++++++++++++++ .../kotlin/moe/nea/test/TestClass.forge.kt | 9 +++++++++ 2 files changed, 30 insertions(+) create mode 100644 archenemyexample/src/forgeMain/kotlin/moe/nea/aee/forge/Main.kt create mode 100644 archenemyexample/src/forgeMain/kotlin/moe/nea/test/TestClass.forge.kt (limited to 'archenemyexample/src/forgeMain/kotlin/moe') diff --git a/archenemyexample/src/forgeMain/kotlin/moe/nea/aee/forge/Main.kt b/archenemyexample/src/forgeMain/kotlin/moe/nea/aee/forge/Main.kt new file mode 100644 index 0000000..141949e --- /dev/null +++ b/archenemyexample/src/forgeMain/kotlin/moe/nea/aee/forge/Main.kt @@ -0,0 +1,21 @@ +package moe.nea.aee.forge + +import net.minecraft.launchwrapper.ITweaker +import net.minecraft.launchwrapper.LaunchClassLoader +import java.io.File + +class Tweaker : ITweaker { + override fun acceptOptions(args: MutableList?, gameDir: File?, assetsDir: File?, profile: String?) { + } + + override fun injectIntoClassLoader(classLoader: LaunchClassLoader) { + } + + override fun getLaunchTarget(): String { + return "net.minecraft.client.main.Main" + } + + override fun getLaunchArguments(): Array { + return arrayOf() + } +} diff --git a/archenemyexample/src/forgeMain/kotlin/moe/nea/test/TestClass.forge.kt b/archenemyexample/src/forgeMain/kotlin/moe/nea/test/TestClass.forge.kt new file mode 100644 index 0000000..74e76b7 --- /dev/null +++ b/archenemyexample/src/forgeMain/kotlin/moe/nea/test/TestClass.forge.kt @@ -0,0 +1,9 @@ +package moe.nea.test + +import net.minecraft.client.Minecraft + +actual object TestClass { + actual fun printTitle() { + println(Minecraft.getMinecraft().currentScreen?.toString() ?: "no screen") + } +} \ No newline at end of file -- cgit