diff options
Diffstat (limited to 'archenemyexample/src/fabricMain')
3 files changed, 9 insertions, 7 deletions
diff --git a/archenemyexample/src/fabricMain/kotlin/doStuff.kt b/archenemyexample/src/fabricMain/kotlin/doStuff.kt deleted file mode 100644 index fc163c2..0000000 --- a/archenemyexample/src/fabricMain/kotlin/doStuff.kt +++ /dev/null @@ -1,7 +0,0 @@ -import net.minecraft.client.MinecraftClient -import net.minecraft.server.dedicated.DedicatedServer - -actual fun doStuff(args: Int) { - val client = MinecraftClient.getInstance() - val dedicated: DedicatedServer = TODO() -}
\ No newline at end of file diff --git a/archenemyexample/src/fabricMain/kotlin/moe/nea/test/TestClass.fabric.kt b/archenemyexample/src/fabricMain/kotlin/moe/nea/test/TestClass.fabric.kt new file mode 100644 index 0000000..210bbc7 --- /dev/null +++ b/archenemyexample/src/fabricMain/kotlin/moe/nea/test/TestClass.fabric.kt @@ -0,0 +1,9 @@ +package moe.nea.test + +import net.minecraft.client.MinecraftClient + +actual object TestClass { + actual fun printTitle() { + println(MinecraftClient.getInstance().currentScreen?.toString() ?: "no screen") + } +}
\ No newline at end of file diff --git a/archenemyexample/src/fabricMain/kotlin/test.kt b/archenemyexample/src/fabricMain/kotlin/test.kt deleted file mode 100644 index e69de29..0000000 --- a/archenemyexample/src/fabricMain/kotlin/test.kt +++ /dev/null |