diff options
author | nea <romangraef@gmail.com> | 2022-07-12 14:20:22 +0200 |
---|---|---|
committer | nea <romangraef@gmail.com> | 2022-07-12 14:20:22 +0200 |
commit | 372eec27e5e0c8ef796ed9e6bcdc68a10df84718 (patch) | |
tree | 425ab1a282196a68819da297c670e9170a8c514a /quilt/src/main/kotlin/net | |
download | firmament-372eec27e5e0c8ef796ed9e6bcdc68a10df84718.tar.gz firmament-372eec27e5e0c8ef796ed9e6bcdc68a10df84718.tar.bz2 firmament-372eec27e5e0c8ef796ed9e6bcdc68a10df84718.zip |
initial
Diffstat (limited to 'quilt/src/main/kotlin/net')
-rw-r--r-- | quilt/src/main/kotlin/net/examplemod/fabric/ExampleExpectPlatformImpl.kt | 13 | ||||
-rw-r--r-- | quilt/src/main/kotlin/net/examplemod/quilt/ExampleModQuilt.kt | 12 |
2 files changed, 25 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 |