[PR #7326] [MERGED] Add item frame render hook #7495

Closed
opened 2026-11-03 06:40:08 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7326
Author: @Xmilon
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: native/nametag-item-frame


📝 Commits (5)

📊 Changes

5 files changed (+88 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/frames.rs (+7 -0)
📝 crates/horizon-client/src/game/native_hooks.rs (+18 -0)
📝 crates/horizon-client/src/mod_api/generated.rs (+45 -0)
📝 docs/native-mods.md (+4 -0)
➕ tools/native-hook-fragments/render_item_in_frame.json (+14 -0)

📄 Description

🤖 Opened by Xmilon's AI agent (Claude Code orchestrating GPT-6.1 Terra), not by Xmilon personally.

Written by an AI agent (Claude Code orchestrating GPT-6.1 Terra) for Xmilon

Part of #7304 (stays open: the name tag hook is not in this PR: player, mob, armor stand and targeted-frame name tags are filtered separately before shared geometry)

Changes

  • Add the cancellable RenderItemInFrameEvent-style hook before both map and item submission, including GPU-skinned and CPU item paths.
  • Include frame entity ID, block position and item stack in the typed event.

Scope limitation

The requested name-tag hook is not implemented: visibility and candidate selection are split between player/mob, armor stand and targeted item-frame paths in name_tags; their filtering occurs before shared name_tag_geometry, so a hook there cannot force hidden tags to render. The issue should remain open for that work despite the requested closing reference.

Verification

  • cargo fmt --all
  • cargo run -p xtask -- mod-api --check
  • git diff --check
  • Not run: client builds, tests, or in-game validation, as requested.

🤖 Generated with Codex (GPT-6.1 Terra)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/7326 **Author:** [@Xmilon](https://github.com/Xmilon) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `native/nametag-item-frame` --- ### 📝 Commits (5) - [`5541afa`](https://github.com/horizon-rust/horizon/commit/5541afa8575a3787fa2790971dc75f5ab3d7d6f7) Add item frame render hook - [`a62b921`](https://github.com/horizon-rust/horizon/commit/a62b921fdda429b6bb57bd18d418dd73705d246b) Merge main into #7326 - [`9dc844c`](https://github.com/horizon-rust/horizon/commit/9dc844cf61e6b4c0c50b62a7cd0952e738938ae3) Merge upstream/main - [`c34132a`](https://github.com/horizon-rust/horizon/commit/c34132a0aa34638479bf67532079213df513e4a9) Merge main into #7326 - [`237cebd`](https://github.com/horizon-rust/horizon/commit/237cebd62d62dfbfc0a293622565ff070c9f1d31) Merge #7326's head into the main merge ### 📊 Changes **5 files changed** (+88 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/frames.rs` (+7 -0) 📝 `crates/horizon-client/src/game/native_hooks.rs` (+18 -0) 📝 `crates/horizon-client/src/mod_api/generated.rs` (+45 -0) 📝 `docs/native-mods.md` (+4 -0) ➕ `tools/native-hook-fragments/render_item_in_frame.json` (+14 -0) </details> ### 📄 Description > 🤖 Opened by Xmilon's AI agent (Claude Code orchestrating GPT-6.1 Terra), not by Xmilon personally. Written by an AI agent (Claude Code orchestrating GPT-6.1 Terra) for Xmilon Part of #7304 (stays open: the name tag hook is not in this PR: player, mob, armor stand and targeted-frame name tags are filtered separately before shared geometry) ## Changes - Add the cancellable RenderItemInFrameEvent-style hook before both map and item submission, including GPU-skinned and CPU item paths. - Include frame entity ID, block position and item stack in the typed event. ## Scope limitation The requested name-tag hook is not implemented: visibility and candidate selection are split between player/mob, armor stand and targeted item-frame paths in `name_tags`; their filtering occurs before shared `name_tag_geometry`, so a hook there cannot force hidden tags to render. The issue should remain open for that work despite the requested closing reference. ## Verification - `cargo fmt --all` - `cargo run -p xtask -- mod-api --check` - `git diff --check` - Not run: client builds, tests, or in-game validation, as requested. 🤖 Generated with Codex (GPT-6.1 Terra) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:40:08 +07:00
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#7495
No description provided.