Last active
December 16, 2015 05:29
-
-
Save riking/5384742 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add events for new inventory features in 1.5 | |
This commit brings the InventoryClickEvent in line with the new Minecraft changes in 1.5. | |
InventoryDragEvent (thanks to @YLivay for his PR) is added to represent the new "dragging" or "painting" | |
functionality, where if you hold an itemstack and click-drag over several slots, the items will be split | |
evenly (left click) or 1 each (right click). The InventoryAction enum is used for all the other new | |
actions. | |
Additionally, handling of creative inventory editing is improved with InventoryCreativeEvent, and | |
handling of numberkey presses is also improved within InventoryClickEvent and CraftItemEvent. | |
Also, cancelling a creative click displays properly on the client. | |
Fixes BUKKIT-3692, BUKKIT-4035, BUKKIT-3859 (new 1.5 events), and fixes BUKKIT-2659, BUKKIT-3043, | |
BUKKIT-1479, BUKKIT-1450, BUKKIT-2659, BUKKIT-2897 (creative click events). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment