[PR #6926] [MERGED] Clear stale classes-02.tsv rows main already implements #7201

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-classes-02


📝 Commits (2)

  • df454e9 port_map: clear the two stale classes-02 rows
  • 8e7b36d Merge branch 'main' into chore/ledger-classes-02

📊 Changes

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

View changed files

📝 tools/port_map/classes-02.tsv (+2 -2)

📄 Description

Two missing rows in tools/port_map/classes-02.tsv name code the tree already has.

row was now cites
PlayerHeadItem.getName missing — "Horizon shows the plain item name" port — crates/horizon-client/src/item_tooltip.rs::player_head_name
ShearsItem.useOn missing — "unsure: SHEARS_TRIM ..." port — crates/horizon-client/src/game/growth.rs::Game::shears_crop

PlayerHeadItem.getName — player_head_name reads the minecraft:profile name off the stack and name_line titles the head with it through block.minecraft.player_head.named ("%s's Head"), which is exactly getName's component.

ShearsItem.useOn — Game::shears_crop is the growing-plant arm: a shears clicked on a GrowingPlantHead below age 25 gets GrowingPlantHeadBlock.getMaxAgeState, plays block.growing_plant.crop, sends a block_change, wears one durability and reports the use (used stat, swing, item_used_on_block). The SHEARS_TRIM doubt in the old note does not hold — carving a pumpkin is PumpkinBlock.useItemOn and lives in game/pumpkin.rs, so it never belonged to this row.

The other ten missing rows in the file were checked again and left alone: ItemAttributeModifiers.withModifierAdded (no loot set_attributes function), SulfurCubeContent.addToTooltip, WritableBookContent.getPages (pages are read raw, no filtering), ReplaceBlock.apply, RunFunction.apply, ScaleExponentially.process, SetBlockProperties.apply (no enchantment entity-effect dispatch), CompositeSlotSource.group, SlotSelector.TrackingSelector.filter, SlotSelector.TrackingSelector.trySelectSlot (slots are picked by name only).

python3 tools/port_ledger.py build --jar .../26.3/jars/server.jar && python3 tools/port_ledger.py map-check tools/port_map/classes-02.tsv → 158 rows, no problems.

Proven: 158 rows, no problems. — every class, method and file::fn the file names resolves against a fresh ledger build of the pinned 26.3 jar.

Not proven: no in-game check. Nothing here is a behaviour change; both rows now point at code that was already shipped, and neither the head title nor the shears crop was exercised in a running client for this PR.


🔄 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/6926 **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/ledger-classes-02` --- ### 📝 Commits (2) - [`df454e9`](https://github.com/horizon-rust/horizon/commit/df454e97ac955479dd86a4145c36400333b38cde) port_map: clear the two stale classes-02 rows - [`8e7b36d`](https://github.com/horizon-rust/horizon/commit/8e7b36d70471b6229bd8c241507468f8373df682) Merge branch 'main' into chore/ledger-classes-02 ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/classes-02.tsv` (+2 -2) </details> ### 📄 Description Two `missing` rows in `tools/port_map/classes-02.tsv` name code the tree already has. | row | was | now cites | | --- | --- | --- | | `PlayerHeadItem.getName` | `missing` — "Horizon shows the plain item name" | `port` — `crates/horizon-client/src/item_tooltip.rs::player_head_name` | | `ShearsItem.useOn` | `missing` — "unsure: SHEARS_TRIM ..." | `port` — `crates/horizon-client/src/game/growth.rs::Game::shears_crop` | **`PlayerHeadItem.getName`** — `player_head_name` reads the `minecraft:profile` name off the stack and `name_line` titles the head with it through `block.minecraft.player_head.named` (`"%s's Head"`), which is exactly `getName`'s component. **`ShearsItem.useOn`** — `Game::shears_crop` is the growing-plant arm: a shears clicked on a `GrowingPlantHead` below age 25 gets `GrowingPlantHeadBlock.getMaxAgeState`, plays `block.growing_plant.crop`, sends a `block_change`, wears one durability and reports the use (`used` stat, swing, `item_used_on_block`). The `SHEARS_TRIM` doubt in the old note does not hold — carving a pumpkin is `PumpkinBlock.useItemOn` and lives in `game/pumpkin.rs`, so it never belonged to this row. The other ten `missing` rows in the file were checked again and left alone: `ItemAttributeModifiers.withModifierAdded` (no loot `set_attributes` function), `SulfurCubeContent.addToTooltip`, `WritableBookContent.getPages` (pages are read raw, no filtering), `ReplaceBlock.apply`, `RunFunction.apply`, `ScaleExponentially.process`, `SetBlockProperties.apply` (no enchantment entity-effect dispatch), `CompositeSlotSource.group`, `SlotSelector.TrackingSelector.filter`, `SlotSelector.TrackingSelector.trySelectSlot` (slots are picked by name only). `python3 tools/port_ledger.py build --jar .../26.3/jars/server.jar && python3 tools/port_ledger.py map-check tools/port_map/classes-02.tsv` → `158 rows, no problems.` **Proven:** `158 rows, no problems.` — every class, method and `file::fn` the file names resolves against a fresh ledger build of the pinned 26.3 jar. **Not proven:** no in-game check. Nothing here is a behaviour change; both rows now point at code that was already shipped, and neither the head title nor the shears crop was exercised in a running client for this PR. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:35:36 +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#7201
No description provided.