Fix InventoryItemMoveEvent Implementations (#5462)
Description
This PR fixes #5462 where event values were unknowingly removed before the merge, with additions to event-block support and JUnit test.
Target Minecraft Versions: any Requirements: none Related Issues: #5462, #6092
tests 😍
Tests for this PR cannot be proceeded until #6261 and other issues related to delayed tests to be fixed in Skript's JUnit testing system.
Tests for this PR cannot be proceeded until #6261 and other issues related to delayed tests to be fixed in Skript's JUnit testing system.
If the junit changes can't be made in time for 2.8, consider testing by just creating and calling a InventoryMoveEvent yourself.
I'd like to have this in 2.8-pre1, @DelayedGaming, so would you be willing to either do (or let me do) the changes to the tests I suggested above as a stopgap until those JUnit fixes are done?
As #6451 points a pattern improvement, I decided to apply it into this PR as both are on the same page.