feat: add PlayerBundleItemSelectEvent#13898
Open
mrtz6 wants to merge 4 commits into
Open
Conversation
Author
|
This pretty much enables listening for scrolling above an item. Here are some usage examples for this event: rules.mp4item_browser.mp4 |
Owen1212055
reviewed
May 20, 2026
| this.player.containerMenu.setSelectedBundleItemIndex(packet.slotId(), packet.selectedItemIndex()); | ||
| + | ||
| + // Paper start - PlayerBundleItemSelectEvent | ||
| + if (this.player.isCreative() && this.player.containerMenu instanceof net.minecraft.world.inventory.InventoryMenu) { |
Member
There was a problem hiding this comment.
Add a comment why this is needed
(And maybe open a MJ bug)
Author
There was a problem hiding this comment.
Added in 0115042. I'm unsure whether this is a bug or behavior intended by Mojang, given how differently creative mode inventory actions are handled.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new event that is called when a player selects an item in a bundle.