User Tools

Site Tools


tutorial:mixin_hotswaps

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorial:mixin_hotswaps [2022/05/05 18:26] – external edit 127.0.0.1tutorial:mixin_hotswaps [2025/04/11 13:23] (current) – Fix punctuation cph101
Line 6: Line 6:
 {{https://i.imgur.com/fUrhss5.png}} {{https://i.imgur.com/fUrhss5.png}}
  
-Copy the full path to the jar and open up your run configurations. Under ''Minecraft Client'', expand the VM options tab. You'll need to set the ''-javaagent'' flag to the path of the mixin jar:+Copy the full path to the jar and open up your run configurations. Under ''Minecraft Client'', expand the VM options tab. You'll need to set the ''-javaagent'' flag to the path of the mixin jar
 + 
 +Optionally, you can add the ''-XX:+AllowEnhancedClassRedefinition'' flag to enable parameters to be changed, and fields or methods to be added/removed:
  
 {{https://i.imgur.com/SuW9MlV.png}} {{https://i.imgur.com/SuW9MlV.png}}
  
-Run your game in debug mode. You can now reload mixins using the same rules as normal: +You can do these things if you also add the ''-XX:+AllowEnhancedClassRedefinition'' VM option.
-  * no adding or removing methods +
-  * no changing method parameters +
-  * no adding or removing fields+
  
 To recompile your mixin in IntelliJ, use the ''Recompile'' option in the ''Build'' menu. The default keybind for this is ''Ctrl+Shift+F9''. To recompile your mixin in IntelliJ, use the ''Recompile'' option in the ''Build'' menu. The default keybind for this is ''Ctrl+Shift+F9''.
tutorial/mixin_hotswaps.1651775199.txt.gz · Last modified: 2022/05/05 18:26 by 127.0.0.1