mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 16:54:22 +00:00
Fix item handler documentation that says returning ItemStack.EMPTY is required (#4587)
This commit is contained in:
1 parent
07c4da8f36
commit
83b7010ddf
1 file changed
+1
-1
@@ -60,7 +60,7 @@ public interface IItemHandler
|
||||
* @param slot Slot to insert into.
|
||||
* @param stack ItemStack to insert. This must not be modified by the item handler.
|
||||
* @param simulate If true, the insertion is only simulated
|
||||
* @return The remaining ItemStack that was not inserted (if the entire stack is accepted, then return ItemStack.EMPTY).
|
||||
* @return The remaining ItemStack that was not inserted (if the entire stack is accepted, then return an empty ItemStack).
|
||||
* May be the same as the input ItemStack if unchanged, otherwise a new ItemStack.
|
||||
* The returned ItemStack can be safely modified after.
|
||||
**/
|
||||
|
||||
Reference in new issue
Block a user