summaryrefslogtreecommitdiff
path: root/archenemyexample/src/forgeMain/kotlin/moe
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-06-19 00:08:30 +0200
committerLinnea Gräf <nea@nea.moe>2024-06-19 00:08:30 +0200
commit4d778b97ee33485af5236ad6bdfdd2949fd69cc2 (patch)
tree749fb202c133036d954a8fdbcfdea25750721cb2 /archenemyexample/src/forgeMain/kotlin/moe
parenta453cc833f52cf1ccd52288edb73c6f0fbc0c7cc (diff)
downloadarchenemy-4d778b97ee33485af5236ad6bdfdd2949fd69cc2.tar.gz
archenemy-4d778b97ee33485af5236ad6bdfdd2949fd69cc2.tar.bz2
archenemy-4d778b97ee33485af5236ad6bdfdd2949fd69cc2.zip
fix stuff for pauline
Diffstat (limited to 'archenemyexample/src/forgeMain/kotlin/moe')
-rw-r--r--archenemyexample/src/forgeMain/kotlin/moe/nea/aee/forge/Main.kt21
-rw-r--r--archenemyexample/src/forgeMain/kotlin/moe/nea/test/TestClass.forge.kt9
2 files changed, 30 insertions, 0 deletions
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<String>?, 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<String> {
+ 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