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/06/30 00:02] – ↷ Page name changed from tutorial:applychanges to tutorial:hotswapping banana | tutorial:hotswapping [2024/11/03 17:26] (current) – [Hotswapping Mixins] modmuss50 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~REDIRECT> | ||
+ | |||
====== Applying changes without restarting Minecraft ====== | ====== Applying changes without restarting Minecraft ====== | ||
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 9: | Line 11: | ||
{{https:// | {{https:// | ||
+ | |||
+ | ===== Reload resources ===== | ||
==== Reload assets ==== | ==== Reload assets ==== | ||
Line 15: | 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.1719705724.txt.gz · Last modified: 2024/06/30 00:02 by banana