From 09cd2809fbe4c3411c9065fd5b8a7fca52cceafd Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Mon, 5 Feb 2024 13:19:59 +0100 Subject: Add an auto discovery plugin for mixins This will automatically find mixins in the mixin plugin, not requiring the manual configuration. This is less friction, especially for newer users. Usually this isn't super advisable, or needs more configuration to avoid server/client mixins being incorrectly applied, but with the target demographic of mostly client mods, I think this is a worthwhile change. --- src/main/resources/mixins.examplemod.json | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/main/resources/mixins.examplemod.json') diff --git a/src/main/resources/mixins.examplemod.json b/src/main/resources/mixins.examplemod.json index 570a0d0..5ea0c57 100644 --- a/src/main/resources/mixins.examplemod.json +++ b/src/main/resources/mixins.examplemod.json @@ -1,11 +1,8 @@ { - "package": "${mixinGroup}", + "package": "${basePackage}.mixin", + "plugin": "${basePackage}.init.AutoDiscoveryMixinPlugin", "refmap": "mixins.${modid}.refmap.json", "minVersion": "0.7", "compatibilityLevel": "JAVA_8", - "mixins": [ - ], - "client": [ - "MixinGuiMainMenu" - ] + "__comment": "You do not need to manually register mixins in this template. Check the auto discovery mixin plugin for more info." } -- cgit