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 /forge/src/main | |
download | Firmament-372eec27e5e0c8ef796ed9e6bcdc68a10df84718.tar.gz Firmament-372eec27e5e0c8ef796ed9e6bcdc68a10df84718.tar.bz2 Firmament-372eec27e5e0c8ef796ed9e6bcdc68a10df84718.zip |
initial
Diffstat (limited to 'forge/src/main')
5 files changed, 83 insertions, 0 deletions
diff --git a/forge/src/main/kotlin/net/examplemod/forge/ExampleExpectPlatformImpl.kt b/forge/src/main/kotlin/net/examplemod/forge/ExampleExpectPlatformImpl.kt new file mode 100644 index 0000000..8617e69 --- /dev/null +++ b/forge/src/main/kotlin/net/examplemod/forge/ExampleExpectPlatformImpl.kt @@ -0,0 +1,14 @@ +package net.examplemod.forge + +import net.minecraftforge.fml.loading.FMLPaths +import java.nio.file.Path +import net.examplemod.ExampleExpectPlatform + +@Suppress("unused") +object ExampleExpectPlatformImpl { + /** + * This is our actual method to [ExampleExpectPlatform.getConfigDirectory]. + */ + @JvmStatic + fun getConfigDirectory(): Path = FMLPaths.CONFIGDIR.get() +}
\ No newline at end of file diff --git a/forge/src/main/kotlin/net/examplemod/forge/ExampleModForge.kt b/forge/src/main/kotlin/net/examplemod/forge/ExampleModForge.kt new file mode 100644 index 0000000..7dc906c --- /dev/null +++ b/forge/src/main/kotlin/net/examplemod/forge/ExampleModForge.kt @@ -0,0 +1,16 @@ +package net.examplemod.forge + +import dev.architectury.platform.forge.EventBuses +import net.examplemod.ExampleMod +import net.examplemod.ExampleMod.init +import net.minecraftforge.fml.common.Mod +import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext + +@Mod(ExampleMod.MOD_ID) +class ExampleModForge { + init { + // Submit our event bus to let architectury register our content on the right time + EventBuses.registerModEventBus(ExampleMod.MOD_ID, FMLJavaModLoadingContext.get().modEventBus) + init() + } +}
\ No newline at end of file diff --git a/forge/src/main/resources/META-INF/mods.toml b/forge/src/main/resources/META-INF/mods.toml new file mode 100644 index 0000000..4c3d869 --- /dev/null +++ b/forge/src/main/resources/META-INF/mods.toml @@ -0,0 +1,35 @@ +modLoader = "javafml" +loaderVersion = "[40,)" +#issueTrackerURL = "TODO" +license = "LGPL-3.0" + +[[mods]] +modId = "notenoughupdates" +version = "${version}" +displayName = "Not Enough Updates" +authors = "nea89" +description = ''' +Not Enough Updates - A mod for Hypixel Skyblock +''' +#logoFile = "" + +[[dependencies.notenoughupdates]] +modId = "forge" +mandatory = true +versionRange = "[40,)" +ordering = "NONE" +side = "BOTH" + +[[dependencies.notenoughupdates]] +modId = "minecraft" +mandatory = true +versionRange = "[1.18.2,)" +ordering = "NONE" +side = "BOTH" + +[[dependencies.notenoughupdates]] +modId = "architectury" +mandatory = true +versionRange = "[4.2.50,)" +ordering = "AFTER" +side = "BOTH" diff --git a/forge/src/main/resources/examplemod.mixins.json b/forge/src/main/resources/examplemod.mixins.json new file mode 100644 index 0000000..50eba1c --- /dev/null +++ b/forge/src/main/resources/examplemod.mixins.json @@ -0,0 +1,12 @@ +{ + "required": true, + "package": "net.examplemod.mixin.forge", + "compatibilityLevel": "JAVA_16", + "client": [ + ], + "mixins": [ + ], + "injectors": { + "defaultRequire": 1 + } +}
\ No newline at end of file diff --git a/forge/src/main/resources/pack.mcmeta b/forge/src/main/resources/pack.mcmeta new file mode 100644 index 0000000..9252d3d --- /dev/null +++ b/forge/src/main/resources/pack.mcmeta @@ -0,0 +1,6 @@ +{ + "pack": { + "description": "Example Mod", + "pack_format": 8 + } +} |