[GH-ISSUE #5534] Native mods: image tooltip components #1720

Closed
opened 2026-11-02 15:49:11 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @reservedbytes on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5534

Originally assigned to: @Xmilon on GitHub.

Part of #4953

A mod item's tooltip can only show text
Vanilla's bundle tooltip draws its contents with a TooltipComponent and a client renderer, and NeoForge lets a mod register its own (RegisterClientTooltipComponentFactoriesEvent)

What's missing

  • a mod item giving a tooltip component from its stack
  • a client renderer for it, drawn in the tooltip like the bundle's
Originally created by @reservedbytes on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5534 Originally assigned to: @Xmilon on GitHub. Part of #4953 A mod item's tooltip can only show text Vanilla's bundle tooltip draws its contents with a `TooltipComponent` and a client renderer, and NeoForge lets a mod register its own (`RegisterClientTooltipComponentFactoriesEvent`) What's missing - a mod item giving a tooltip component from its stack - a client renderer for it, drawn in the tooltip like the bundle's
Author
Owner

@Xmilon commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

Taking the stack-dependent image tooltip component hooks: measure the component, then draw it with the existing native GUI helpers inside the item tooltip. Preserve vanilla bundle components and ordinary text tooltips.

<!-- gh-comment-id:6551117768 --> @Xmilon commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim Taking the stack-dependent image tooltip component hooks: measure the component, then draw it with the existing native GUI helpers inside the item tooltip. Preserve vanilla bundle components and ordinary text tooltips.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1720
No description provided.