From 3cd5f5f32cd60c15e1c68862d28885f733473dad Mon Sep 17 00:00:00 2001 From: ingle Date: Fri, 23 Sep 2022 22:24:48 -0500 Subject: Some things work now --- .../kotlin/dulkirmod/forge/FMLLoadingPlugin.kt | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/main/kotlin/dulkirmod/forge/FMLLoadingPlugin.kt (limited to 'src/main/kotlin/dulkirmod/forge/FMLLoadingPlugin.kt') diff --git a/src/main/kotlin/dulkirmod/forge/FMLLoadingPlugin.kt b/src/main/kotlin/dulkirmod/forge/FMLLoadingPlugin.kt new file mode 100644 index 0000000..ee21437 --- /dev/null +++ b/src/main/kotlin/dulkirmod/forge/FMLLoadingPlugin.kt @@ -0,0 +1,28 @@ +package dulkirmod.forge + +import net.minecraftforge.common.ForgeVersion +import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin +import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin.MCVersion +import org.spongepowered.asm.launch.MixinBootstrap +import org.spongepowered.asm.mixin.MixinEnvironment +import org.spongepowered.asm.mixin.Mixins + +@MCVersion(ForgeVersion.mcVersion) +class FMLLoadingPlugin : IFMLLoadingPlugin { + + override fun getASMTransformerClass(): Array = emptyArray() + + override fun getModContainerClass(): String? = null + + override fun getSetupClass(): String? = null + + override fun injectData(data: Map) {} + + override fun getAccessTransformerClass(): String? = null + + init { + MixinBootstrap.init() + Mixins.addConfiguration("mixins.dulkirmod.json") + MixinEnvironment.getCurrentEnvironment().obfuscationContext = "searge" + } +} -- cgit