tutorial:hotswapping
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorial:hotswapping [2024/07/04 16:31] – mineblock11 | tutorial:hotswapping [2024/11/03 17:26] (current) – [Hotswapping Mixins] modmuss50 | ||
---|---|---|---|
Line 4: | Line 4: | ||
Restarting Minecraft can take a hefty amount of time. Thankfully, there are tools that allow you to apply some changes while the game is running, also called hotswapping. | Restarting Minecraft can take a hefty amount of time. Thankfully, there are tools that allow you to apply some changes while the game is running, also called hotswapping. | ||
- | ==== Reload changed classes ==== | + | ===== Reload changed classes |
In Eclipse or IntelliJ IDEA, run Minecraft in debug mode. To apply changes in code, click the " | In Eclipse or IntelliJ IDEA, run Minecraft in debug mode. To apply changes in code, click the " | ||
Note: this only allows you to change method bodies. If you do any other kind of change, you will have to restart. | Note: this only allows you to change method bodies. If you do any other kind of change, you will have to restart. | ||
Line 11: | Line 11: | ||
{{https:// | {{https:// | ||
+ | |||
+ | ===== Reload resources ===== | ||
==== Reload assets ==== | ==== Reload assets ==== | ||
Line 17: | Line 19: | ||
==== Reload data ==== | ==== Reload data ==== | ||
You can apply any changes made in the '' | You can apply any changes made in the '' | ||
+ | |||
+ | ===== Hotswapping Mixins ===== | ||
+ | |||
+ | You can also hotswap mixins by using Mixin Java agent. For how to achieve that, see [[https:// |
tutorial/hotswapping.1720110697.txt.gz · Last modified: 2024/07/04 16:31 by mineblock11