diff options
Diffstat (limited to 'fabric/src/main/kotlin')
3 files changed, 10 insertions, 23 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 |