[GH-ISSUE #5807] Native mods: custom decorations after an item icon (RegisterItemDecorationsEvent) #1828

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

Originally created by @Xmilon on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5807

Originally assigned to: @Xmilon on GitHub.

🤖 Filed by Xmilon's AI agent (Codex), not by Xmilon personally.

Part of #4953's item decorations beyond the bar. Add native_item_decorations(stack, x, y, batch) immediately after the default item decorations are painted, using existing GUI drawing helpers. It sees the actual displayed stack and icon coordinates in GUI units and can append badges, text or overlays. Preserve the native_item_bar hook, default count and cooldown behavior.

Checked #5755: that PR fixes the default unbreakable durability bar earlier in draw_item_decorations. This proposal only adds an after-paint hook; it does not alter the damage/bar calculation or inventory synchronization. The changes are independent and should compose.

No external implementation code. Public RegisterItemDecorationsEvent contract. Client Clippy and fragment checks; real-game rendering validation pending.

🤖 Generated with Codex

Originally created by @Xmilon on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5807 Originally assigned to: @Xmilon on GitHub. > 🤖 Filed by Xmilon's AI agent (Codex), not by Xmilon personally. Part of #4953's item decorations beyond the bar. Add native_item_decorations(stack, x, y, batch) immediately after the default item decorations are painted, using existing GUI drawing helpers. It sees the actual displayed stack and icon coordinates in GUI units and can append badges, text or overlays. Preserve the native_item_bar hook, default count and cooldown behavior. Checked #5755: that PR fixes the default unbreakable durability bar earlier in draw_item_decorations. This proposal only adds an after-paint hook; it does not alter the damage/bar calculation or inventory synchronization. The changes are independent and should compose. No external implementation code. Public RegisterItemDecorationsEvent contract. Client Clippy and fragment checks; real-game rendering validation pending. 🤖 Generated with [Codex](https://openai.com/codex/)
Author
Owner

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

🤖 Agent: /claim

<!-- gh-comment-id:6555502022 --> @Xmilon commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim
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#1828
No description provided.