* Handle modded packets on the network thread - On the server we simply need to remove the call to ensureRunningOnSameThread. - On the client side, we now handle the packet at the very start of the call. We make sure we're running from a network thread to prevent calling the handling code twice. While this does mean we no longer call .release(), in practice this doesn't cause any leaks as ClientboundCustomPayloadPacket releases for us. * Clarify behaviour a little in the documentation * Javadoc formatting * Add a helper method for handling packets on the main thread Also rename the network thread one. Should make it clearer the expected behaviour of the two, and make it clearer there's a potentially breaking change. * Add back consumer() methods Also document EventNetworkChannel, to clarify the thread behaviour there. * Add since = "1.19" to deprecated annotations
MinecraftForge
Forge is a free, open-source modding API all of your favourite mods use!
| Version | Support |
|---|---|
| 1.19.x | Active |
| 1.18.x | LTS |
Installing Forge
Go to the Forge website and select the Minecraft version you wish to get Forge for from the list.
You can download the installer for the Recommended Build or the Latest build there. Latest builds may have newer features but may be more unstable as a result. The installer will attempt to install Forge into your vanilla launcher environment, where you can then create a new profile using that version and play the game!
For support and questions, visit the Support Forum or the Forge Discord server.
Here is a short video from Rorax showing how to install and setup Forge.
Creating Mods
See the "Getting Started" section in the Forge Documentation.
Contribute to Forge
If you wish to actually inspect Forge, submit PRs or otherwise work with Forge itself, you're in the right place!
See the guide to setting up a Forge workspace.
Pull requests
See the "Making Changes and Pull Requests" section in the Forge documentation.
Please read the contributing guidelines found here before making a pull request.
Contributor License Agreement
We require all contributors to acknowledge the Forge Contributor License Agreement. Please ensure you have a valid email address associated with your GitHub account to do this. If you have previously signed it, you should be OK.
Donate
Forge is a large project with many collaborators working on it around the clock. Forge is and will always remain free to use and modify. However, it costs money to run such a large project as this, so please consider becoming a patron.