User Tools

Site Tools


tutorial:mixin_export

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tutorial:mixin_export [2020/03/15 17:41] – created draylartutorial:mixin_export [2023/03/15 17:52] (current) – Add instructions for use @Debug to only export certain mixins mattidragon
Line 7: Line 7:
  
 {{https://i.imgur.com/d7oKQkg.png}} {{https://i.imgur.com/d7oKQkg.png}}
 +
 +==== 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 ==== === Notes ====
  
 Some classes may not appear until the game is running (or a world is loading).  Some classes may not appear until the game is running (or a world is loading). 
tutorial/mixin_export.1584294083.txt.gz · Last modified: 2020/03/15 17:41 by draylar