diff --git a/images/mixin-export.png b/images/mixin-export.png new file mode 100644 index 0000000..a388df6 Binary files /dev/null and b/images/mixin-export.png differ diff --git a/tags/guide/mixindebug.ytag b/tags/guide/mixindebug.ytag deleted file mode 100644 index 643580b..0000000 --- a/tags/guide/mixindebug.ytag +++ /dev/null @@ -1,5 +0,0 @@ -type: text - ---- - -`-Dmixin.debug.export=true` diff --git a/tags/guide/mixinexport.ytag b/tags/guide/mixinexport.ytag new file mode 100644 index 0000000..427027b --- /dev/null +++ b/tags/guide/mixinexport.ytag @@ -0,0 +1,25 @@ +type: embed + +colour: black +embed: + title: Exporting Mixin Classes + image: + url: "https://raw.githubusercontent.com/FabricMC/community/main/images/mixin-export.png" + +--- + +Annotate your Mixin class with `@Debug(export = true)`, which will export the individual Mixin. + +Example: +```java +@Debug(export = true) +@Mixin(...) +public class MyMixin { + // Mixin code here +} +``` +You can export **all** Mixin classes by adding `-Dmixin.debug.export=true` to your VM options. +> IntelliJ IDEA - [Run/debug configurations - More options](https://www.jetbrains.com/help/idea/run-debug-configuration-java-application.html#more_options) (See "VM options") +> VSCode - [Running and debugging Java - Configuration options](https://code.visualstudio.com/docs/java/java-debugging#_configuration-options) (See "vmArgs") + +Exported finalized classes will appear in `run/.mixin.out`. \ No newline at end of file