Posted March 13, 201510 yr I saw Ichun's video here: And I noticed that he changed his code and then just un-minimized minecraft, e.g. he already had it running, as I though you had to restart minecraft everytime which takes about 30sec-minute each time, how is this done? It would be a pretty big time saver.
March 13, 201510 yr Author This is nothing forge specific. You need to run Java in debug mode (google) and voila, you have hot-swap support. Thank you so much! I just thought debug outputted additional info in console for some reason.
March 13, 201510 yr Author This is nothing forge specific. You need to run Java in debug mode (google) and voila, you have hot-swap support. Actually I have another question. I googled it and I think I understand most of the basics, breakpoints mean suspend when code is encountered... etc. So in this image... I think I set it up correctly, but say for example I want to change the healAmount (not sure if right name, the amount of food bars it gives) of the item for the class open in eclipse (hotbar slot 1) from 6 to 20, from what I understand, I need to change it in the variable view, but the variable area is empty, so how would I do this?
March 13, 201510 yr The debug views allows to instantly import SOME changes of the code directly into a running java programm. Best example (for minecraft) is developing a GUI. If u got a GUI opened the draw method is called every.. frame or tick im not sure I think it was frame. Which means if u change something in the draw method it is changed with the next draw, which is quite fast. Some other chings might not be changed, like creation of a new method. Also some things might not other things might not work. Like setting the amount a food you get by eating something if you set it in the constructor. This is because the constructor is only called ONCE and that is when setting up minecraft to get started. Hope this helps you a bit.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.