Hotswap

From Forge Community Wiki
Revision as of 13:32, 6 October 2022 by Tmvkrpxl0 (talk | contribs) (Guide about hot-swapping both code and resources)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

What even is this?

Hot-swapping is a feature letting you to see code/resource changes in-game without restarting it. This article is divided into 2 sections: Basic hot-swapping and schema change hot-swapping, as latter one requires more setup.

Basic hot-swapping

Here, you would be able to swap out resource pack/data pack of your mod without restarting the game. You can also swap out code if only method's internal has been changed. You would still need to restart game if you added/removed/renamed method/variable/class.