Add MixinExtras on 1.16.4+

We'll use it in 1.20 mixins.
Unclear what minimal fabric-loader version it requires, so in the interest of
keeping older versions compatible with OptiFabric (old versions of which aren't
compatible with the latest fabric-loader), we'll add it to 1.16.4+ only.
This commit is contained in:
Jonas Herzig
2023-06-12 09:34:15 +02:00
parent 587eff59fe
commit 96a05e256f
5 changed files with 25 additions and 3 deletions

View File

@@ -330,6 +330,11 @@ dependencies {
annotationProcessor 'org.ow2.asm:asm-tree:6.2' annotationProcessor 'org.ow2.asm:asm-tree:6.2'
annotationProcessor 'org.apache.logging.log4j:log4j-core:2.0-beta9' annotationProcessor 'org.apache.logging.log4j:log4j-core:2.0-beta9'
} }
if (mcVersion >= 11604) {
shadow(annotationProcessor('com.github.LlamaLad7:MixinExtras:0.1.1'))
}
shadow 'com.googlecode.mp4parser:isoparser:1.1.7' shadow 'com.googlecode.mp4parser:isoparser:1.1.7'
shadow 'org.apache.commons:commons-exec:1.3' shadow 'org.apache.commons:commons-exec:1.3'
shadow 'com.google.apis:google-api-services-youtube:v3-rev178-1.22.0', shadeExclusions shadow 'com.google.apis:google-api-services-youtube:v3-rev178-1.22.0', shadeExclusions

View File

@@ -0,0 +1,14 @@
//#if FABRIC>=1
package com.replaymod.core;
import net.fabricmc.loader.api.entrypoint.PreLaunchEntrypoint;
public class MixinExtrasInit implements PreLaunchEntrypoint {
@Override
public void onPreLaunch() {
//#if MC>=11604
com.llamalad7.mixinextras.MixinExtrasBootstrap.init();
//#endif
}
}
//#endif

View File

@@ -29,7 +29,8 @@
"com.replaymod.render.utils.FlawlessFrames::registerConsumer" "com.replaymod.render.utils.FlawlessFrames::registerConsumer"
], ],
"preLaunch": [ "preLaunch": [
"com.replaymod.core.DummyChainLoadEntryPoint" "com.replaymod.core.DummyChainLoadEntryPoint",
"com.replaymod.core.MixinExtrasInit"
], ],
"mm:early_risers": [ "mm:early_risers": [
"com.replaymod.core.ReplayModMMLauncher" "com.replaymod.core.ReplayModMMLauncher"

View File

@@ -29,7 +29,8 @@
"com.replaymod.render.utils.FlawlessFrames::registerConsumer" "com.replaymod.render.utils.FlawlessFrames::registerConsumer"
], ],
"preLaunch": [ "preLaunch": [
"com.replaymod.core.DummyChainLoadEntryPoint" "com.replaymod.core.DummyChainLoadEntryPoint",
"com.replaymod.core.MixinExtrasInit"
], ],
"mm:early_risers": [ "mm:early_risers": [
"com.replaymod.core.ReplayModMMLauncher" "com.replaymod.core.ReplayModMMLauncher"

View File

@@ -29,7 +29,8 @@
"com.replaymod.render.utils.FlawlessFrames::registerConsumer" "com.replaymod.render.utils.FlawlessFrames::registerConsumer"
], ],
"preLaunch": [ "preLaunch": [
"com.replaymod.core.DummyChainLoadEntryPoint" "com.replaymod.core.DummyChainLoadEntryPoint",
"com.replaymod.core.MixinExtrasInit"
], ],
"mm:early_risers": [ "mm:early_risers": [
"com.replaymod.core.ReplayModMMLauncher" "com.replaymod.core.ReplayModMMLauncher"