diff options
Diffstat (limited to 'fabric/src/main')
4 files changed, 69 insertions, 0 deletions
diff --git a/fabric/src/main/kotlin/net/examplemod/fabric/ExampleExpectPlatformImpl.kt b/fabric/src/main/kotlin/net/examplemod/fabric/ExampleExpectPlatformImpl.kt new file mode 100644 index 0000000..8982dfc --- /dev/null +++ b/fabric/src/main/kotlin/net/examplemod/fabric/ExampleExpectPlatformImpl.kt @@ -0,0 +1,13 @@ +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 new file mode 100644 index 0000000..c11491c --- /dev/null +++ b/fabric/src/main/kotlin/net/examplemod/fabric/ExampleModFabric.kt @@ -0,0 +1,10 @@ +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 new file mode 100644 index 0000000..21eaec0 --- /dev/null +++ b/fabric/src/main/resources/fabric.mod.json @@ -0,0 +1,34 @@ +{ + "schemaVersion": 1, + "id": "notenoughupdates", + "version": "${version}", + "name": "Not Enough Updates", + "description": "Not Enough Updates - A mod for Hypixel Skyblock", + "authors": [ + "nea89" + ], + "contact": { + "homepage": "https://github.com/romangraef/TODO", + "sources": "https://github.com/romangraef/TODO" + }, + "license": "LGPL-3.0", + "icon": "assets/notenoughupdates/icon.png", + "environment": "client", + "entrypoints": { + "main": [ + "net.examplemod.fabric.ExampleModFabric" + ], + "rei": [ + "moe.nea.notenoughupdates.rei.NEUReiPlugin" + ] + }, + "mixins": [ + "notenoughupdates.mixins.json", + "notenoughupdates-common.mixins.json" + ], + "depends": { + "fabric": "*", + "minecraft": ">=1.18.2", + "architectury": ">=4.2.50" + } +} diff --git a/fabric/src/main/resources/notenoughupdates.mixins.json b/fabric/src/main/resources/notenoughupdates.mixins.json new file mode 100644 index 0000000..ab40cb1 --- /dev/null +++ b/fabric/src/main/resources/notenoughupdates.mixins.json @@ -0,0 +1,12 @@ +{ + "required": true, + "package": "net.examplemod.mixin.fabric", + "compatibilityLevel": "JAVA_16", + "client": [ + ], + "mixins": [ + ], + "injectors": { + "defaultRequire": 1 + } +}
\ No newline at end of file |