tutorial:mixin_hotswaps
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
tutorial:mixin_hotswaps [2019/10/24 21:42] – created draylar | tutorial:mixin_hotswaps [2024/06/30 00:11] (current) – add hint to vm option banana | ||
---|---|---|---|
Line 2: | Line 2: | ||
Mixins can't be hot-swapped in a default Fabric environment. To enable this functionality, | Mixins can't be hot-swapped in a default Fabric environment. To enable this functionality, | ||
- | The only thing you'll need for step 1 is the sponge mixin jar. Fabric pulls this by default, so you should be able to locate it within your Gradle cache folder. IDEA users can look at the bottom of their project view on the left side of the screen to find the library: | + | The only pre-requisite |
{{https:// | {{https:// | ||
Line 10: | Line 10: | ||
{{https:// | {{https:// | ||
- | Run your game. You can now reload mixins using the same rules as normal: | + | Run your game in debug mode. You can now reload mixins using the same rules as normal: |
- | - no adding or removing methods | + | |
- | - no changing method parameters | + | |
- | - no adding or removing fields | + | |
- | === Notes === | + | You can do these things if you also add the '' |
- | In my experience, Mixin hot-swapping | + | |
+ | To recompile your mixin in IntelliJ, use the '' | ||
+ | |||
+ | === Notes ==== | ||
+ | |||
+ | DCEVM does not officially support mixin swapping: | ||
+ | * When run on Java 1.8:181, DCEVM and Mixin reloads do not work. | ||
+ | * When run on DCEVM Java 11, you can reload, but the hot swap task freezes. | ||
+ | * When run on JetBrains Runtime' | ||
tutorial/mixin_hotswaps.1571953378.txt.gz · Last modified: 2019/10/24 21:42 by draylar