Add InventoryMovedItemEvent #10493
Replies: 4 comments
-
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Beta Was this translation helpful? Give feedback.
-
|
This issue has been automatically closed because it has not had activity in a long time. If the issue still applies to the most recent supported version, please open a new issue referencing this original issue. |
Beta Was this translation helpful? Give feedback.
-
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Beta Was this translation helpful? Give feedback.
-
|
This issue has been automatically closed because it has not had activity in a long time. If the issue still applies to the most recent supported version, please open a new issue referencing this original issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
At present, Bukkit provides an event called
InventoryMoveItemEvent, but this event will be called no matter whether the item is moved successfully or not (for example, the container is full).Describe the solution you'd like
I hope Paper can provide an event that is triggered after the container successfully moves items.
Describe alternatives you've considered
Use reflection manually to determine whether the container can move items: Click here
Additional context
I think we can modify the
addItem(IInventory, IInventory, ItemStack, EnumDirection)method ofnet.minecraft.server.TileEntityHopperto achieve the purpose.Beta Was this translation helpful? Give feedback.
All reactions