You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Panel items with rich metadata (banners, potions, spawners, bundles) leaked per-item tooltip lines into menu lore, cluttering the display and making intended text harder to read.
Changes
PanelItem.java — Replaced the deprecated ItemFlag.HIDE_ADDITIONAL_TOOLTIP with Paper's modern TooltipDisplay data component API. A new hideAdditionalTooltip() helper method uses TooltipDisplay.tooltipDisplay().addHiddenComponents() to hide item-specific tooltip information (banner patterns, potion effects, firework effects, jukebox playable, suspicious stew effects, bundle contents, and map decorations). The method merges with any existing tooltip display set by the non-deprecated ItemFlags (HIDE_ATTRIBUTES, HIDE_DESTROYS, HIDE_PLACED_ON, HIDE_ENCHANTS) to avoid overwriting them. Called at the end of both the constructor and setHead().
PanelItemTest.java — Updated testSetHead to verify the TooltipDisplay data component is applied via setData() instead of the deprecated HIDE_ADDITIONAL_TOOLTIP flag.
Since all GUI panels go through PanelItem, this fix covers every menu in BentoBox (language selector, settings, admin panels, etc.) without any per-panel changes.
CopilotAI
changed the title
[WIP] Add option to disable attributes in menus
Hide additional item tooltips (banner patterns, potion effects, etc.) in all panels
Apr 7, 2026
@copilot ItemFlag.HIDE_ADDITIONAL_TOOLTIP is Deprecated and the notes say:
does not exist anymore and will not properly work with individually hidden data components; see io.papermc.paper.datacomponent.item.TooltipDisplay and ItemStack.setData(DataComponentType.Valued, Object)
Is there an alternative approach that isn't deprecated?
@copilot ItemFlag.HIDE_ADDITIONAL_TOOLTIP is Deprecated and the notes say:
does not exist anymore and will not properly work with individually hidden data components; see io.papermc.p...
Replaced with Paper's modern TooltipDisplay data component API in 7c0e6a9. The new hideAdditionalTooltip() method uses TooltipDisplay.tooltipDisplay().addHiddenComponents() to hide banner patterns, potion effects, firework effects, jukebox playable info, suspicious stew effects, bundle contents, and map decorations. It also merges with any existing tooltip display set by the non-deprecated ItemFlags (HIDE_ATTRIBUTES, etc.) to avoid overwriting them.
CopilotAI
changed the title
Hide additional item tooltips (banner patterns, potion effects, etc.) in all panels
Hide additional item tooltips (banner patterns, potion effects, etc.) in all panels using modern TooltipDisplay API
Apr 8, 2026
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
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.
Panel items with rich metadata (banners, potions, spawners, bundles) leaked per-item tooltip lines into menu lore, cluttering the display and making intended text harder to read.
Changes
PanelItem.java— Replaced the deprecatedItemFlag.HIDE_ADDITIONAL_TOOLTIPwith Paper's modernTooltipDisplaydata component API. A newhideAdditionalTooltip()helper method usesTooltipDisplay.tooltipDisplay().addHiddenComponents()to hide item-specific tooltip information (banner patterns, potion effects, firework effects, jukebox playable, suspicious stew effects, bundle contents, and map decorations). The method merges with any existing tooltip display set by the non-deprecatedItemFlags (HIDE_ATTRIBUTES,HIDE_DESTROYS,HIDE_PLACED_ON,HIDE_ENCHANTS) to avoid overwriting them. Called at the end of both the constructor andsetHead().PanelItemTest.java— UpdatedtestSetHeadto verify theTooltipDisplaydata component is applied viasetData()instead of the deprecatedHIDE_ADDITIONAL_TOOLTIPflag.Since all GUI panels go through
PanelItem, this fix covers every menu in BentoBox (language selector, settings, admin panels, etc.) without any per-panel changes.