NeoForge
NeoForge copied to clipboard
Add `ItemHandlerHelper.moveItems` helper method
This PR adds a new helper method to move items from one inventory to another. This is surprisingly tricky to get right, and should be provided to all users of NeoForge for convenience and correctness.
Typical use cases include machine auto-import/export, pipes moving items, etc...
- [x] Publish PR to GitHub Packages
Last commit published: 6da036da913c197362e1082b9284b10e8fc0a472.
PR Publishing
The artifacts published by this PR:
Repository Declaration
In order to use the artifacts published by the PR, add the following repository to your buildscript:
repositories {
maven {
name 'Maven for PR #696' // https://github.com/neoforged/NeoForge/pull/696
url 'https://prmaven.neoforged.net/NeoForge/pr696'
content {
includeModule('net.neoforged', 'neoforge')
}
}
}
MDK installation
In order to setup a MDK using the latest PR version, run the following commands in a terminal.
The script works on both *nix and Windows as long as you have the JDK bin
folder on the path.
The script will clone the MDK in a folder named NeoForge-pr696
.
On Powershell you will need to remove the -L
flag from the curl
invocation.
mkdir NeoForge-pr696
cd NeoForge-pr696
curl -L https://prmaven.neoforged.net/NeoForge/pr696/net/neoforged/neoforge/20.4.198-pr-696-move-items/mdk-pr696.zip -o mdk.zip
jar xf mdk.zip
rm mdk.zip || del mdk.zip
To test a production environment, you can download the installer from here.