Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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.

  • 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.

  • 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...

 

Ob574.jpg

 

 

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?

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.