aboutsummaryrefslogtreecommitdiff
path: root/quilt/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'quilt/src/main')
-rw-r--r--quilt/src/main/kotlin/net/examplemod/fabric/ExampleExpectPlatformImpl.kt13
-rw-r--r--quilt/src/main/kotlin/net/examplemod/quilt/ExampleModQuilt.kt12
-rw-r--r--quilt/src/main/resources/quilt.mod.json45
3 files changed, 70 insertions, 0 deletions
diff --git a/quilt/src/main/kotlin/net/examplemod/fabric/ExampleExpectPlatformImpl.kt b/quilt/src/main/kotlin/net/examplemod/fabric/ExampleExpectPlatformImpl.kt
new file mode 100644
index 0000000..6f78162
--- /dev/null
+++ b/quilt/src/main/kotlin/net/examplemod/fabric/ExampleExpectPlatformImpl.kt
@@ -0,0 +1,13 @@
+package net.examplemod.fabric
+
+import org.quiltmc.loader.api.QuiltLoader
+import java.nio.file.Path
+import net.examplemod.ExampleExpectPlatform
+
+object ExampleExpectPlatformImpl {
+ /**
+ * This is our actual method to [ExampleExpectPlatform.getConfigDirectory].
+ */
+ @JvmStatic
+ fun getConfigDirectory(): Path = QuiltLoader.getConfigDir()
+} \ No newline at end of file
diff --git a/quilt/src/main/kotlin/net/examplemod/quilt/ExampleModQuilt.kt b/quilt/src/main/kotlin/net/examplemod/quilt/ExampleModQuilt.kt
new file mode 100644
index 0000000..94a36c9
--- /dev/null
+++ b/quilt/src/main/kotlin/net/examplemod/quilt/ExampleModQuilt.kt
@@ -0,0 +1,12 @@
+package net.examplemod.quilt
+
+import net.examplemod.ExampleMod.init
+import org.quiltmc.loader.api.ModContainer
+import org.quiltmc.qsl.base.api.entrypoint.ModInitializer
+
+@Suppress("unused")
+class ExampleModQuilt : ModInitializer {
+ override fun onInitialize(mod: ModContainer) {
+ init()
+ }
+} \ No newline at end of file
diff --git a/quilt/src/main/resources/quilt.mod.json b/quilt/src/main/resources/quilt.mod.json
new file mode 100644
index 0000000..6cdf9ae
--- /dev/null
+++ b/quilt/src/main/resources/quilt.mod.json
@@ -0,0 +1,45 @@
+{
+ "schema_version": 1,
+ "mixins": [
+ "notenoughupdates.mixins.json",
+ "notenoughupdates-common.mixins.json"
+ ],
+ "quilt_loader": {
+ "group": "${group}",
+ "id": "notenoughupdates",
+ "version": "${version}",
+ "name": "Not Enough Updates",
+ "description": "Not Enough Updates - A mod for Hypixel Skyblock",
+ "authors": ["nea89"],
+ "contact": {
+ "sources": "https://github.com/romangraef/TODO"
+ },
+ "license": "LGPL-3.0",
+ "icon": "assets/notenoughupdates/icon.png",
+ "intermediate_mappings": "net.fabricmc:intermediary",
+ "environment": "*",
+ "entrypoints": {
+ "init": [
+ "net.examplemod.quilt.ExampleModQuilt"
+ ]
+ },
+ "depends": [
+ {
+ "id": "quilt_loader",
+ "version": "*"
+ },
+ {
+ "id": "quilt_base",
+ "version": "*"
+ },
+ {
+ "id": "minecraft",
+ "version": ">=1.18.2"
+ },
+ {
+ "id": "architectury",
+ "version": ">=4.2.50"
+ }
+ ]
+ }
+}