[PR #7334] [MERGED] port map: classes-04's stem, hanging sign and container rows are ported #7503

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

📋 Pull Request Information

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

Base: main ← Head: chore/vol-c-classes-04


📝 Commits (2)

  • e850f4d port_map: classes-04's stem, hanging sign and container rows are ported
  • ce83147 port_map: classes-04's barrel and UpgradeData notes say what is there

📊 Changes

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

View changed files

📝 tools/port_map/classes-04.tsv (+10 -10)

📄 Description

Rows of tools/port_map/classes-04.tsv (232 rows, map-check clean against 26.3): the block and block-entity classes — signs, barrels, containers, the game-test blocks.

Verdicts

row was now where
StemBlock.getCloneItemStack missing port crates/horizon-client/src/game/block_items.rs::clone_item
WallHangingSignBlock.isHittingEditableSide missing inline crates/horizon-world/src/level/interact.rs::Behaviours::block_use_item_on
WallHangingSignBlock.shouldTryToChainAnotherHangingSign missing inline crates/horizon-world/src/level/interact.rs::Behaviours::block_use_item_on
RandomizableContainerBlockEntity.canOpen missing inline crates/horizon-client/src/game/advancements.rs::Game::container_locked_for
TestBlock missing skip:debug —
TestInstanceBlock missing skip:debug —
TestBlockEntity missing skip:debug —
TestInstanceBlockEntity missing skip:debug —
  • clone_item names BlockState.getCloneItemStack in its doc: a pumpkin or melon stem, attached or not, picks the seed it grew from, and stems_pick_their_seeds_and_blocks_their_item pins it. The row's "no stem case found in the pick code" was simply out of date.
  • block_use_item_on's WallHangingSignBlock.useItemOn arm passes the click when a hanging sign is aimed at any face other than the wall sign's own and its opposite — the editable faces. Passing is what lets the held sign place its own block, so the chain is the consequence of that test, which is why both rows are inline there.
  • container_locked_for is BaseContainerBlockEntity.canOpen's lock (adv::can_unlock, where a spectator is let in) negated; RandomizableContainerBlockEntity.canOpen is isSpectator() || BaseContainerBlockEntity.canOpen(...), the same decision.
  • The four game-test rows are developer tooling, and the map already files the rest of that framework that way (client2-003.tsv: GameTestBlockHighlightRenderer skip:debug; client-002.tsv: handleGameTestHighlightPos skip:debug; game2-020.tsv: GameRules.setAll skip:debug). Horizon keeps the block entity NBT and has no test runner, so they are skip:debug rather than missing.

Notes repaired

  • BarrelBlockEntity.recheckOpen loses its "unsure". There is no barrel lid in the tree at all — containers.rs holds the 27 slots and nothing else — so there is nothing to recheck, while a chest's golem openers are rechecked on a timer.
  • UpgradeData now names both halves: the datafix carries the tag (datafix/chunk_leaves.rs writes its Sides bits) and no chunk load applies the block upgrades it describes.

Checked and left as gaps: RandomizableContainerBlockEntity's row is about the lock, which is ported; nothing in the tree reads a barrel's viewers.

Map-check:

PORT_LEDGER_OUT=... python3 tools/port_ledger.py map-check tools/port_map/classes-04.tsv
232 rows, no problems.

Proven: each flip read at the cite — clone_item's four stem ids and its test, block_use_item_on's face != facing && face != facing.opposite() pass, container_locked_for's !adv::can_unlock(&lock, spectator, ...) with can_unlock's spectator short-circuit, and the game-test convention in the three maps already merged. canOpen's vanilla shape is from the bytecode: isSpectator then BaseContainerBlockEntity.canOpen, which is LockCode.canUnlock.

Not proven: that a player-visible difference is gone in all four cases — I read the functions, I did not middle-click a stem, chain a hanging sign or open a locked barrel in game. The game-test reclassification is a judgement about scope, not a behaviour claim.


🔄 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/7334 **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/vol-c-classes-04` --- ### 📝 Commits (2) - [`e850f4d`](https://github.com/horizon-rust/horizon/commit/e850f4d4ec55bd8f8cfd3525a75ad5e9ce57816d) port_map: classes-04's stem, hanging sign and container rows are ported - [`ce83147`](https://github.com/horizon-rust/horizon/commit/ce831473d071faae04c8fa1b147fe02067e743f9) port_map: classes-04's barrel and UpgradeData notes say what is there ### 📊 Changes **1 file changed** (+10 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/classes-04.tsv` (+10 -10) </details> ### 📄 Description Rows of `tools/port_map/classes-04.tsv` (232 rows, map-check clean against 26.3): the block and block-entity classes — signs, barrels, containers, the game-test blocks. **Verdicts** | row | was | now | where | | --- | --- | --- | --- | | `StemBlock.getCloneItemStack` | missing | port | `crates/horizon-client/src/game/block_items.rs::clone_item` | | `WallHangingSignBlock.isHittingEditableSide` | missing | inline | `crates/horizon-world/src/level/interact.rs::Behaviours::block_use_item_on` | | `WallHangingSignBlock.shouldTryToChainAnotherHangingSign` | missing | inline | `crates/horizon-world/src/level/interact.rs::Behaviours::block_use_item_on` | | `RandomizableContainerBlockEntity.canOpen` | missing | inline | `crates/horizon-client/src/game/advancements.rs::Game::container_locked_for` | | `TestBlock` | missing | skip:debug | — | | `TestInstanceBlock` | missing | skip:debug | — | | `TestBlockEntity` | missing | skip:debug | — | | `TestInstanceBlockEntity` | missing | skip:debug | — | - `clone_item` names `BlockState.getCloneItemStack` in its doc: a pumpkin or melon stem, attached or not, picks the seed it grew from, and `stems_pick_their_seeds_and_blocks_their_item` pins it. The row's "no stem case found in the pick code" was simply out of date. - `block_use_item_on`'s `WallHangingSignBlock.useItemOn` arm passes the click when a hanging sign is aimed at any face other than the wall sign's own and its opposite — the editable faces. Passing is what lets the held sign place its own block, so the chain is the consequence of that test, which is why both rows are `inline` there. - `container_locked_for` is `BaseContainerBlockEntity.canOpen`'s lock (`adv::can_unlock`, where a spectator is let in) negated; `RandomizableContainerBlockEntity.canOpen` is `isSpectator() || BaseContainerBlockEntity.canOpen(...)`, the same decision. - The four game-test rows are developer tooling, and the map already files the rest of that framework that way (`client2-003.tsv`: `GameTestBlockHighlightRenderer` skip:debug; `client-002.tsv`: `handleGameTestHighlightPos` skip:debug; `game2-020.tsv`: `GameRules.setAll` skip:debug). Horizon keeps the block entity NBT and has no test runner, so they are `skip:debug` rather than `missing`. **Notes repaired** - `BarrelBlockEntity.recheckOpen` loses its "unsure". There is no barrel lid in the tree at all — `containers.rs` holds the 27 slots and nothing else — so there is nothing to recheck, while a chest's golem openers are rechecked on a timer. - `UpgradeData` now names both halves: the datafix carries the tag (`datafix/chunk_leaves.rs` writes its `Sides` bits) and no chunk load applies the block upgrades it describes. Checked and left as gaps: `RandomizableContainerBlockEntity`'s row is about the lock, which is ported; nothing in the tree reads a barrel's viewers. Map-check: ``` PORT_LEDGER_OUT=... python3 tools/port_ledger.py map-check tools/port_map/classes-04.tsv 232 rows, no problems. ``` **Proven:** each flip read at the cite — `clone_item`'s four stem ids and its test, `block_use_item_on`'s `face != facing && face != facing.opposite()` pass, `container_locked_for`'s `!adv::can_unlock(&lock, spectator, ...)` with `can_unlock`'s spectator short-circuit, and the game-test convention in the three maps already merged. `canOpen`'s vanilla shape is from the bytecode: `isSpectator` then `BaseContainerBlockEntity.canOpen`, which is `LockCode.canUnlock`. **Not proven:** that a player-visible difference is gone in all four cases — I read the functions, I did not middle-click a stem, chain a hanging sign or open a locked barrel in game. The game-test reclassification is a judgement about scope, not a behaviour claim. --- <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:14 +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#7503
No description provided.