[PR #1958] [MERGED] Show custom item names above targeted item frames #3892

Closed
opened 2026-11-03 04:13:03 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1958
Author: @rdbtCVS
Created: 10/25/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @ludovic111

Base: main ← Head: t3/item-frame-name-display


📝 Commits (1)

  • 072f5ce Fix custom item names above targeted item frames

📊 Changes

2 files changed (+51 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/names.rs (+36 -0)
📝 tools/lan_e2e.py (+15 -2)

📄 Description

🤖 Opened by rdbt's AI agent (Codex), not by rdbt himself.

What and why

Fixes #1951. Targeting a frame containing a custom-named item now displays the item's name above it through the existing world name-label renderer. The label follows vanilla's HUD visibility and frame render offset, and works for normal and glow item frames in local and server-client play.

Extend the existing LAN frame regression to check empty frames, targeted named items, looking away, and F1, using a normal frame on the host and a glow frame on the guest.

Vanilla reference

Inspected the pinned 26.3 client bytecode with javap -c -p (REA reported the methods but returned no bodies): ItemFrameRenderer.shouldShowName, getNameTag, and getRenderOffset; EntityRenderer.extractNameTags; and EntityAttachment.NAME_TAG.

Self-check

pr_ready (tools/pr_ready.py --quick on archlinux, against origin/main at 93e3096e0, 8 min 6 s)

Check Result
Scope ✅ 2 files, +48 −1
Cargo.lock ✅ unchanged
Public tree ✅ (4 s)
Python tests ✅ 287 passed (39 s)
rustfmt ✅ (11 s)
clippy ✅ (1 min 49 s)
tests: horizon-client ✅ 1255 passed (4 min 41 s)
doc tests ✅ 0 passed (4 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 28 affected, to run in CI (--quick): arrow, block_removal, command_exec, composter, crafter, cursor_death, dedicated_server, dispenser, hardcore_respawn, locator_bar, lore_tooltip, mace and 16 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Additional validation:

  • Fast game build: passed.
  • lan_e2e.py --check frames: passed (host in-frame and LAN guest).
  • lan_e2e.py --server-thread --check frames: passed (host and guest as server clients).
  • Games used fresh isolated homes via the local integration adapter. Parity checks are left to CI as requested.

Screenshots

Captured and visually inspected the normal-frame label; normal and glow frame screenshots were generated by both successful LAN runs under .local/lan-e2e-1951-{verified,server}/ (local artifacts, not committed).

🤖 Generated with Codex.


🔄 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/1958 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `t3/item-frame-name-display` --- ### 📝 Commits (1) - [`072f5ce`](https://github.com/horizon-rust/horizon/commit/072f5ce2ee412f735e9b2ec70c29126695dc15b0) Fix custom item names above targeted item frames ### 📊 Changes **2 files changed** (+51 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/names.rs` (+36 -0) 📝 `tools/lan_e2e.py` (+15 -2) </details> ### 📄 Description > 🤖 Opened by rdbt's AI agent (Codex), not by rdbt himself. ## What and why Fixes #1951. Targeting a frame containing a custom-named item now displays the item's name above it through the existing world name-label renderer. The label follows vanilla's HUD visibility and frame render offset, and works for normal and glow item frames in local and server-client play. Extend the existing LAN frame regression to check empty frames, targeted named items, looking away, and F1, using a normal frame on the host and a glow frame on the guest. ## Vanilla reference Inspected the pinned 26.3 client bytecode with `javap -c -p` (REA reported the methods but returned no bodies): `ItemFrameRenderer.shouldShowName`, `getNameTag`, and `getRenderOffset`; `EntityRenderer.extractNameTags`; and `EntityAttachment.NAME_TAG`. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on archlinux, against origin/main at 93e3096e0, 8 min 6 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +48 −1 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ (4 s) | | Python tests | ✅ 287 passed (39 s) | | rustfmt | ✅ (11 s) | | clippy | ✅ (1 min 49 s) | | tests: horizon-client | ✅ 1255 passed (4 min 41 s) | | doc tests | ✅ 0 passed (4 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 28 affected, to run in CI (--quick): arrow, block_removal, command_exec, composter, crafter, cursor_death, dedicated_server, dispenser, hardcore_respawn, locator_bar, lore_tooltip, mace and 16 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Additional validation: - Fast game build: passed. - `lan_e2e.py --check frames`: passed (host in-frame and LAN guest). - `lan_e2e.py --server-thread --check frames`: passed (host and guest as server clients). - Games used fresh isolated homes via the local integration adapter. Parity checks are left to CI as requested. ## Screenshots Captured and visually inspected the normal-frame label; normal and glow frame screenshots were generated by both successful LAN runs under `.local/lan-e2e-1951-{verified,server}/` (local artifacts, not committed). 🤖 Generated with [Codex](https://openai.com/codex/). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:13:03 +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#3892
No description provided.