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] – removed - external edit (Unknown date) 127.0.0.1 | tutorial:hotswapping [2024/11/03 17:26] (current) – [Hotswapping Mixins] modmuss50 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~REDIRECT> | ||
+ | ====== 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. | ||
+ | |||
+ | ===== Reload changed classes ===== | ||
+ | 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. | ||
+ | However, if you use a special JDK, [[https:// | ||
+ | For Java 11+ use the [[https:// | ||
+ | |||
+ | {{https:// | ||
+ | |||
+ | ===== Reload resources ===== | ||
+ | |||
+ | ==== Reload assets ==== | ||
+ | After you make changes to assets such as textures and block/item models, you can rebuild the project and press '' | ||
+ | |||
+ | ==== Reload data ==== | ||
+ | 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:// |