Deprecate mixinConfig in favor of mixinConfig method to add to the list

This commit is contained in:
shedaniel
2021-01-24 18:32:40 +08:00
parent dfb5f5dd83
commit ed9100c418

View File

@@ -81,6 +81,7 @@ public class LoomGradleExtension {
public File accessWidener = null;
public Function<String, Object> intermediaryUrl = mcVer -> "https://maven.fabricmc.net/net/fabricmc/intermediary/" + mcVer + "/intermediary-" + mcVer + "-v2.jar";
public boolean shareCaches = false;
@Deprecated
public String mixinConfig = null; // FORGE: Passed to Minecraft
public List<String> mixinConfigs = null; // FORGE: Passed to Minecraft
public boolean useFabricMixin = false; // FORGE: Use Fabric Mixin for better refmap resolutions
@@ -163,6 +164,10 @@ public class LoomGradleExtension {
public List<String> getTasksBeforeRun() {
return tasksBeforeRun;
}
public void mixinConfig(String config) {
mixinConfigs.add(config);
}
public void silentMojangMappingsLicense() {
this.silentMojangMappingsLicense = true;