You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* If you are coremod, just call {@link org.spongepowered.asm.mixin.Mixins#addConfigurations(String...)} in loadingPluging or Tweaker, and handle shouldApply in IMixinConfigPlugin<br>
19
+
* If you aren't coremod:<br>
20
+
* Group mixins by phase, add target env in config, use @env(MOD) for mod mixins.<br>
21
+
* Add {"MixinConfigs": "modid.mod.mixin.json,modid.default.mixin.json"} to your jar manifest.<br>
22
+
* Handle shouldApply in IMixinConfigPlugin. You can call {@link net.minecraftforge.fml.common.Loader#isModLoaded(String)} for {@link org.spongepowered.asm.mixin.MixinEnvironment.Phase#MOD} mixin.<br>
23
+
* Recommend to group target mod name by package name. You can also get config instance from {@link org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin#injectConfig(org.spongepowered.asm.mixin.transformer.Config)}.
* If you are coremod, just call {@link org.spongepowered.asm.mixin.Mixins#addConfigurations(String...)} in loadingPlugin or Tweaker, and handle shouldApply in IMixinConfigPlugin<br>
16
+
* If you aren't coremod:<br>
17
+
* Group mixins by phase, add target env in config, use @env(MOD) for mod mixins.<br>
18
+
* Add {"MixinConfigs": "modid.mod.mixin.json,modid.default.mixin.json"} to your jar manifest.<br>
19
+
* Handle shouldApply in IMixinConfigPlugin. You can call {@link net.minecraftforge.fml.common.Loader#isModLoaded(String)} for {@link org.spongepowered.asm.mixin.MixinEnvironment.Phase#MOD} mixin.<br>
20
+
* Recommend to group target mod name by package name. You can also get config instance from {@link org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin#injectConfig(org.spongepowered.asm.mixin.transformer.Config)}.
21
+
*
22
+
* If you what to block a mixin config, {@code GlobalProperties.get(GlobalProperties.Keys.CLEANROOM_DISABLE_MIXIN_CONFIGS)#add(String)}
23
+
*/
24
+
25
+
// TODO: Actually implement the logic
26
+
@Deprecated
27
+
publicinterfaceIMixinConfigHijacker {
28
+
29
+
/**
30
+
* Return a set of mixin config names to not be loaded by the mixin environment.
31
+
*
32
+
* @since 9.0
33
+
*/
34
+
Set<String> getHijackedMixinConfigs();
35
+
36
+
/**
37
+
* Return a set of mixin config names to not be loaded by the mixin environment.
38
+
*
39
+
* @since 10.3
40
+
* @param context current context of the loading process. Mixin config will be null as it is not applicable.
0 commit comments