tutorial:mixin_export
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Previous revision | |||
— | tutorial:mixin_export [2023/03/15 17:52] (current) – Add instructions for use @Debug to only export certain mixins mattidragon | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Exporting Mixin Classes ====== | ||
+ | When debugging mixins, it's useful to be able to see the finalized classes with your changes and injects inserted. Mixin provides a flag that allows for this: | ||
+ | '' | ||
+ | |||
+ | This should be placed in your VM options. Once your classes have been loaded, they will appear in '' | ||
+ | |||
+ | {{https:// | ||
+ | |||
+ | ==== Only Exporting Required Classes ==== | ||
+ | Dumping every mixined class can be useful, but is often unnecessary and does slow down minecraft a bit. Mixin provides a convenient annotation for applying debug features to individual mixins: | ||
+ | |||
+ | @Debug(export = true) // Enables exporting for the targets of this mixin | ||
+ | @Mixin(...) | ||
+ | public class MyMixin { | ||
+ | // Mixin code here | ||
+ | } | ||
+ | |||
+ | === Notes ==== | ||
+ | |||
+ | Some classes may not appear until the game is running (or a world is loading). |
tutorial/mixin_export.txt · Last modified: 2023/03/15 17:52 by mattidragon