From 37218614c6d7f8a903b6532196dfa7d1e94a948f Mon Sep 17 00:00:00 2001 From: nea Date: Tue, 26 Jul 2022 11:42:48 +0200 Subject: legacy tag parsing and transformation --- .../src/main/kotlin/moe/nea/notenoughupdates/FabricMain.kt | 10 ++++++++++ .../net/examplemod/fabric/ExampleExpectPlatformImpl.kt | 13 ------------- .../main/kotlin/net/examplemod/fabric/ExampleModFabric.kt | 10 ---------- fabric/src/main/resources/fabric.mod.json | 2 +- 4 files changed, 11 insertions(+), 24 deletions(-) create mode 100644 fabric/src/main/kotlin/moe/nea/notenoughupdates/FabricMain.kt delete mode 100644 fabric/src/main/kotlin/net/examplemod/fabric/ExampleExpectPlatformImpl.kt delete mode 100644 fabric/src/main/kotlin/net/examplemod/fabric/ExampleModFabric.kt (limited to 'fabric/src') diff --git a/fabric/src/main/kotlin/moe/nea/notenoughupdates/FabricMain.kt b/fabric/src/main/kotlin/moe/nea/notenoughupdates/FabricMain.kt new file mode 100644 index 0000000..918100b --- /dev/null +++ b/fabric/src/main/kotlin/moe/nea/notenoughupdates/FabricMain.kt @@ -0,0 +1,10 @@ +package moe.nea.notenoughupdates + +import moe.nea.notenoughupdates.NotEnoughUpdates.init +import net.fabricmc.api.ModInitializer + +class FabricMain : ModInitializer { + override fun onInitialize() { + init() + } +} diff --git a/fabric/src/main/kotlin/net/examplemod/fabric/ExampleExpectPlatformImpl.kt b/fabric/src/main/kotlin/net/examplemod/fabric/ExampleExpectPlatformImpl.kt deleted file mode 100644 index 8982dfc..0000000 --- a/fabric/src/main/kotlin/net/examplemod/fabric/ExampleExpectPlatformImpl.kt +++ /dev/null @@ -1,13 +0,0 @@ -package net.examplemod.fabric - -import net.fabricmc.loader.api.FabricLoader -import java.nio.file.Path -import net.examplemod.ExampleExpectPlatform - -object ExampleExpectPlatformImpl { - /** - * This is our actual method to [ExampleExpectPlatform.getConfigDirectory]. - */ - @JvmStatic - fun getConfigDirectory(): Path = FabricLoader.getInstance().configDir -} \ No newline at end of file diff --git a/fabric/src/main/kotlin/net/examplemod/fabric/ExampleModFabric.kt b/fabric/src/main/kotlin/net/examplemod/fabric/ExampleModFabric.kt deleted file mode 100644 index c11491c..0000000 --- a/fabric/src/main/kotlin/net/examplemod/fabric/ExampleModFabric.kt +++ /dev/null @@ -1,10 +0,0 @@ -package net.examplemod.fabric - -import net.examplemod.ExampleMod.init -import net.fabricmc.api.ModInitializer - -class ExampleModFabric : ModInitializer { - override fun onInitialize() { - init() - } -} \ No newline at end of file diff --git a/fabric/src/main/resources/fabric.mod.json b/fabric/src/main/resources/fabric.mod.json index 21eaec0..3ff8349 100644 --- a/fabric/src/main/resources/fabric.mod.json +++ b/fabric/src/main/resources/fabric.mod.json @@ -16,7 +16,7 @@ "environment": "client", "entrypoints": { "main": [ - "net.examplemod.fabric.ExampleModFabric" + "moe.nea.notenoughupdates.FabricMain" ], "rei": [ "moe.nea.notenoughupdates.rei.NEUReiPlugin" -- cgit