-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add mixinexport tag, remove mixindebug tag * fix: directory separators Co-authored-by: haykam821 <[email protected]> * feat: add links pointing to guides to set vm options * move image to github --------- Co-authored-by: haykam821 <[email protected]> Co-authored-by: modmuss <[email protected]>
- Loading branch information
1 parent
3ba7ca3
commit 72bd619
Showing
3 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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`. |