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

How can I edit Minecraft classes that are not decompiled when using forge?

 

I know that it keeps the Minecraft files in the libraries section as .class format but how do I go about editing these?

 

Tanks!

If I were you, I wouldn't do that.

Really.

I strongly advise against it.

 

However, if you must;

There is editable code. This is how you get to it:

In eclipse, look for the "build" folder. Navigate to "tmp", then to "recompSrc".

Inside there, there is a huge repository of editable files. The Minecraft folders are located in recompSrc's "net", then "minecraft" folders. I don't know whether these are the actually running files when you start Minecraft in eclipse, or if it is the folders in forgeSrc in "Referenced Libraries" that contains uneditable code. Either way, the code in recompSrc is fully editable.

Developer of the WIP Rubies mod.

Stop now!

 

DO NOT EDIT BASE CLASSES! NO MATTER WHAT!

 

If you need to, use ASM or Reflection, but never, and I repeat NEVER edit base classes!

-Mitchellbrine

 

Minecraft can do ANYTHING, it's coded in Java and you got the full power of Java behind you when you code. So nothing is impossible.

It may be freaking fucking hard though, but still possible ;)

 

If you create a topic on Modder Support, live by this motto:

I don't want your charity, I want your information

Use ASM, Coremods or Events. Tutorial (for 1.6.2): http://www.minecraftforum.net/topic/1854988-tutorial-162-changing-vanilla-without-editing-base-classes-coremods-and-events-very-advanced . Also, there is a mod, called "Battlegear 2", go to its GitHub repository (https://github.com/Mine-and-blade-admin/Battlegear2/blob/master/battlegear%20mod%20src/) and explore the code (this mod patches EntityPlayer class and many more)

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.