[PR #7526] [MERGED] port_map: the structure and test instance boxes are drawn #7649

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

📋 Pull Request Information

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

Base: main ← Head: chore/led2-client-008


📝 Commits (1)

  • 0a30628 port_map: the structure and test instance boxes are drawn

📊 Changes

1 file changed (+4 additions, -4 deletions)

View changed files

📝 tools/port_map/client-008.tsv (+4 -4)

📄 Description

tools/port_map/client-008.tsv: four rows said a game-master sees no structure box, invisible-block or structure-void marker. All of it is drawn.

  • BlockEntityWithBoundingBoxRenderer.extractRenderState -> port crates/horizon-client/src/game/structure_blocks.rs::Game::bounding_box_gizmos — the game-master (or spectator) gate, the 96-block getViewDistance cut and the per-block box, whose comment names BlockEntityWithBoundingBoxRenderer.
  • BlockEntityWithBoundingBoxRenderer.extract -> port crates/horizon-client/src/game/structure_blocks.rs::Game::bounding_box_gizmos — the renderable box comes from the block's own render mode and offset/size, RenderMode::None skips it, and g.bounding_box takes the invisible cells.
  • BlockEntityWithBoundingBoxRenderer.renderStructureVoids -> inline crates/horizon-client/src/game/structure_blocks.rs::Game::bounding_box_gizmos — every minecraft:structure_void cell of the box becomes a StructureVoid marker, beside Air, Barrier and Light in gizmos.rs::InvisibleBlock, whose comment names BlockEntityWithBoundingBoxRenderer.InvisibleBlockType.
  • TestInstanceRenderer.extractRenderState -> port crates/horizon-client/src/game/structure_blocks.rs::Game::bounding_box_gizmos — a test instance block's renderMode is BOX, so its box is the same gizmo (padded and rotated by test_holder_padding/test_rotation); the rest of the render state lives elsewhere: the beacon beam is game/beacon.rs::test_instance_beam (grey running, green pass, red or orange failed) and the error markers are game/test_instances.rs::test_instance_marker_geometry.

The file's other missing rows were rechecked and stay: BlockEntityRenderDispatcher.onResourceManagerReload (block_entities.rs loads a chunk's entities and has no reload path) and TestInstanceRenderer.shouldRenderOffScreen/shouldRender (the renderer has no off-screen flag; the gate is the game-master and distance test above).

Map-check:

PORT_LEDGER_OUT=/tmp/led-led python3 tools/port_ledger.py map-check tools/port_map/client-008.tsv
115 rows, no problems.

Proven: bounding_box_gizmos read end to end (the gate, the distance, both BlockEntity arms, the invisible-cell scan and the InvisibleBlock mapping), InvisibleBlock's comment, test_instance_beam's status-to-colour match, and billboard_text_unit's use in test_instance_marker_geometry. Every where cell resolves under map-check.

Not proven: no in-game check; no structure block was placed and looked at with Show Invisible Blocks on, and no test instance block was placed to see its box or beam.


🔄 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/7526 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/led2-client-008` --- ### 📝 Commits (1) - [`0a30628`](https://github.com/horizon-rust/horizon/commit/0a306289444f05c7ab6e4e8c789e19e78573c5a6) port_map: the structure and test instance boxes are drawn ### 📊 Changes **1 file changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/client-008.tsv` (+4 -4) </details> ### 📄 Description `tools/port_map/client-008.tsv`: four rows said a game-master sees no structure box, invisible-block or structure-void marker. All of it is drawn. - `BlockEntityWithBoundingBoxRenderer.extractRenderState` -> `port crates/horizon-client/src/game/structure_blocks.rs::Game::bounding_box_gizmos` — the game-master (or spectator) gate, the 96-block `getViewDistance` cut and the per-block box, whose comment names `BlockEntityWithBoundingBoxRenderer`. - `BlockEntityWithBoundingBoxRenderer.extract` -> `port crates/horizon-client/src/game/structure_blocks.rs::Game::bounding_box_gizmos` — the renderable box comes from the block's own render mode and offset/size, `RenderMode::None` skips it, and `g.bounding_box` takes the invisible cells. - `BlockEntityWithBoundingBoxRenderer.renderStructureVoids` -> `inline crates/horizon-client/src/game/structure_blocks.rs::Game::bounding_box_gizmos` — every `minecraft:structure_void` cell of the box becomes a `StructureVoid` marker, beside `Air`, `Barrier` and `Light` in `gizmos.rs::InvisibleBlock`, whose comment names `BlockEntityWithBoundingBoxRenderer.InvisibleBlockType`. - `TestInstanceRenderer.extractRenderState` -> `port crates/horizon-client/src/game/structure_blocks.rs::Game::bounding_box_gizmos` — a test instance block's `renderMode` is BOX, so its box is the same gizmo (padded and rotated by `test_holder_padding`/`test_rotation`); the rest of the render state lives elsewhere: the beacon beam is `game/beacon.rs::test_instance_beam` (grey running, green pass, red or orange failed) and the error markers are `game/test_instances.rs::test_instance_marker_geometry`. The file's other `missing` rows were rechecked and stay: `BlockEntityRenderDispatcher.onResourceManagerReload` (`block_entities.rs` loads a chunk's entities and has no reload path) and `TestInstanceRenderer.shouldRenderOffScreen`/`shouldRender` (the renderer has no off-screen flag; the gate is the game-master and distance test above). Map-check: ``` PORT_LEDGER_OUT=/tmp/led-led python3 tools/port_ledger.py map-check tools/port_map/client-008.tsv 115 rows, no problems. ``` **Proven:** `bounding_box_gizmos` read end to end (the gate, the distance, both `BlockEntity` arms, the invisible-cell scan and the `InvisibleBlock` mapping), `InvisibleBlock`'s comment, `test_instance_beam`'s status-to-colour match, and `billboard_text_unit`'s use in `test_instance_marker_geometry`. Every `where` cell resolves under map-check. **Not proven:** no in-game check; no structure block was placed and looked at with Show Invisible Blocks on, and no test instance block was placed to see its box or beam. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 07:21:21 +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#7649
No description provided.