aboutsummaryrefslogtreecommitdiff
path: root/fabric/src/main
diff options
context:
space:
mode:
authornea <romangraef@gmail.com>2022-07-26 11:42:48 +0200
committernea <romangraef@gmail.com>2022-07-26 11:42:48 +0200
commit37218614c6d7f8a903b6532196dfa7d1e94a948f (patch)
treef3ab92298b23ac839eaa84b3af1c769adfa52fda /fabric/src/main
parent372eec27e5e0c8ef796ed9e6bcdc68a10df84718 (diff)
downloadFirmament-37218614c6d7f8a903b6532196dfa7d1e94a948f.tar.gz
Firmament-37218614c6d7f8a903b6532196dfa7d1e94a948f.tar.bz2
Firmament-37218614c6d7f8a903b6532196dfa7d1e94a948f.zip
legacy tag parsing and transformation
Diffstat (limited to 'fabric/src/main')
-rw-r--r--fabric/src/main/kotlin/moe/nea/notenoughupdates/FabricMain.kt10
-rw-r--r--fabric/src/main/kotlin/net/examplemod/fabric/ExampleExpectPlatformImpl.kt13
-rw-r--r--fabric/src/main/kotlin/net/examplemod/fabric/ExampleModFabric.kt10
-rw-r--r--fabric/src/main/resources/fabric.mod.json2
4 files changed, 11 insertions, 24 deletions
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"