mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-03 05:57:42 -05:00
Support Mixin 0.8.5's configurable AP message levels.
Same API as MixinGradle. Closes #671
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
package net.fabricmc.loom.api;
|
||||
|
||||
import org.gradle.api.Action;
|
||||
import org.gradle.api.provider.MapProperty;
|
||||
import org.gradle.api.provider.Property;
|
||||
import org.gradle.api.tasks.SourceSet;
|
||||
import org.gradle.api.tasks.util.PatternSet;
|
||||
@@ -38,6 +39,10 @@ public interface MixinExtensionAPI {
|
||||
|
||||
Property<String> getRefmapTargetNamespace();
|
||||
|
||||
MapProperty<String, String> getMessages();
|
||||
|
||||
Property<Boolean> getShowMessageTypes();
|
||||
|
||||
/**
|
||||
* Apply Mixin AP to sourceSet.
|
||||
* @param sourceSet the sourceSet that applies Mixin AP.
|
||||
@@ -95,4 +100,6 @@ public interface MixinExtensionAPI {
|
||||
* @param sourceSetName the name of sourceSet that applies Mixin AP.
|
||||
*/
|
||||
void add(String sourceSetName);
|
||||
|
||||
void messages(Action<MapProperty<String, String>> action);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user