Interface Injection (#496)

* Added interface injection via fabric.mod.json.

* Added interface injection

* Added amending of class signature with injected interface.
This commit is contained in:
shartte
2022-01-04 19:15:21 +01:00
committed by GitHub
parent 03d3950d11
commit ccfe12eb17
9 changed files with 422 additions and 0 deletions

View File

@@ -132,4 +132,13 @@ public interface LoomGradleExtensionAPI {
* @return the intermediary url template
*/
Property<String> getIntermediaryUrl();
/**
* When true loom will inject interfaces declared in mod manifests into the minecraft jar file.
* This is used to expose interfaces that are implemented on Minecraft classes by mixins at runtime
* in the dev environment.
*
* @return the property controlling interface injection.
*/
Property<Boolean> getEnableInterfaceInjection();
}