Minecraft Forge is a common open source API focused on allowing mods to be created without the need for the source code of Minecraft to be edited.
Happy to report that Minecraft Forge works seamlessly in NetBeans IDE. Take the following steps:
Next, you'll want to map the "runClient" task to the "Run Project" command in NetBeans IDE, so that running your mods is as simple as pressing F6. Right-click the project and choose Properties. The Project Properties dialog opens:
Click "Manage Built-In Tasks" above. Now look for "Run" and then type "runClient" in the Tasks field, as shown below:
Click OK. Press F6 (which is mapped by default to "Run Project") and the "runClient" task will be run!
Congratulations to Attila Kelemen from Hungary, for making such a nice NetBeans plugin for Gradle.
Now mod away!