[PR #6956] [MERGED] Clear stale gui-inventory-1.tsv rows main already implements #7228

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-gui-inventory-1


📝 Commits (3)

  • 1f78a6c Port map: sixteen gui-inventory-1 rows main already ports
  • f8c2e95 Merge remote-tracking branch 'upstream/main' into HEAD
  • 29792b2 Merge main into #6956

📊 Changes

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

View changed files

📝 tools/port_map/gui-inventory-1.tsv (+16 -16)

📄 Description

Sixteen rows of tools/port_map/gui-inventory-1.tsv said missing for behaviour the code has. Each is now cited to the fn that ports it.

  • AbstractCommandBlockEditScreen.mouseScrolled → crates/horizon-client/src/game/command_blocks.rs::Game::command_block_scroll: the wheel over the command box's suggestion list scrolls it (CommandSuggestions.mouseScrolled).
  • AbstractContainerScreen.extractSlotHighlightBack → crates/horizon-client/src/game.rs::Game::draw_slot_highlight: the 24×24 container/slot_highlight_back sprite at (−4, −4) drawn before the slots; the crafter's result slot is left out (Slot.isHighlightable), which draw_hovered_slot_highlight does.
  • AbstractContainerScreen.extractSlotHighlightFront → crates/horizon-client/src/game.rs::Game::draw_slot_highlight: the _front sprite over the item; draw_hovered_slot_highlight runs back, slots, front.
  • AbstractContainerScreen.showTooltipWithItemInHand → crates/horizon-client/src/game/stations.rs::Game::tooltip_with_carried: with a stack carried only a bundle's contents keep their tooltip (BundleContents.showTooltipWithItemInHand).
  • AbstractRecipeBookScreen.mouseDragged → crates/horizon-client/src/game/recipe_book.rs::Game::recipe_book_drag: a drag out of the focused search box moves its selection end (EditBox.onDrag).
  • AbstractRecipeBookScreen.isHovering → crates/horizon-client/src/game/recipe_book.rs::Game::book_covers_menu: an open book in a window narrower than the menu covers it, so slot_at finds no slot and clicks miss.
  • AbstractSignEditScreen.isValid → crates/horizon-client/src/game/sign_edit.rs::Game::tick_sign_editor (inline): the check is the editor's tick; a removed sign, or eyes past the reach + 4, closes it and removed sends the text.
  • AbstractSignEditScreen.preeditUpdated → crates/horizon-client/src/game/ime.rs::Game::ime_preedit (inline): the composition reaches the focused field of any screen, a sign editor included, and is drawn under its caret.
  • CreativeModeInventoryScreen.tryRefreshInvalidatedTabs → crates/horizon-client/src/creative.rs::Creative::set_permissions: rebuilt when hasPermissions changes, the selected tab keeping its first row or giving way to the default tab (refreshCurrentTabContents).
  • CreativeModeInventoryScreen.tryRebuildTabContents → crates/horizon-client/src/creative.rs::Creative::rebuild: the tabs and the search trees are rebuilt from the export.
  • CreativeModeInventoryScreen.containerTick → crates/horizon-client/src/game.rs::Game::tick: refresh_creative_tabs each tick, then a player without infinite materials gets the survival inventory.
  • CreativeModeInventoryScreen.preeditUpdated → crates/horizon-client/src/game/ime.rs::Game::ime_preedit (inline): the search box is a focused field, so the composition shows under its caret.
  • CreativeModeInventoryScreen.updateVisibleTags → crates/horizon-client/src/creative.rs::Creative::search_tag_lines: the tags the text after # matches, each as a #namespace:path line.
  • CreativeModeInventoryScreen.getTooltipFromContainerItem → crates/horizon-client/src/game.rs::Game::creative_tooltip_tabs: the containing tabs' names in blue, then a # search's tags in dark purple, and none for a category tab's own grid slot.
  • CreativeModeInventoryScreen.CustomCreativeSlot.mayPickup → crates/horizon-client/src/creative.rs::click_display (inline): a display slot holding a creative_slot_lock stack takes no click.
  • CyclingSlotBackground (class) → home crates/horizon-client/src/game/stations.rs: CyclingSlot advances an empty slot's icons every 30 ticks with a 4-tick fade, advance and shown.

Left alone: AbstractContainerScreen.tick still has no closeContainer for a dead player — death only swaps to the death screen — so it stays missing.

Validation (client and server jars: server.jar alone has no client classes, so every row of this file would report "no class"):

python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/client.jar --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar >/dev/null && python3 tools/port_ledger.py map-check tools/port_map/gui-inventory-1.tsv
147 rows, no problems.

Proven: every cited fn is in the tree at that path and its doc names the vanilla member it ports; map-check resolves all 147 rows of the file, every class, method and file::fn included.

Not proven: nothing was run in game — the sprite placement, the IME overlay and the tab refresh are read from the code, not watched on screen. Two rows keep a recorded gap rather than a claim: the creative tab rebuild compares hasPermissions only, not feature flags or datapacks, and CustomCreativeSlot.mayPickup's isItemEnabled feature check is not repeated.


🔄 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/6956 **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-gui-inventory-1` --- ### 📝 Commits (3) - [`1f78a6c`](https://github.com/horizon-rust/horizon/commit/1f78a6c2a46d9ba91a7268e84074a2ed152c740c) Port map: sixteen gui-inventory-1 rows main already ports - [`f8c2e95`](https://github.com/horizon-rust/horizon/commit/f8c2e952dd11d1a16492f950029c284e5043354d) Merge remote-tracking branch 'upstream/main' into HEAD - [`29792b2`](https://github.com/horizon-rust/horizon/commit/29792b2c0c046557db14ef26020f363725087275) Merge main into #6956 ### 📊 Changes **1 file changed** (+16 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/gui-inventory-1.tsv` (+16 -16) </details> ### 📄 Description Sixteen rows of `tools/port_map/gui-inventory-1.tsv` said `missing` for behaviour the code has. Each is now cited to the fn that ports it. - `AbstractCommandBlockEditScreen.mouseScrolled` → `crates/horizon-client/src/game/command_blocks.rs::Game::command_block_scroll`: the wheel over the command box's suggestion list scrolls it (`CommandSuggestions.mouseScrolled`). - `AbstractContainerScreen.extractSlotHighlightBack` → `crates/horizon-client/src/game.rs::Game::draw_slot_highlight`: the 24×24 `container/slot_highlight_back` sprite at (−4, −4) drawn before the slots; the crafter's result slot is left out (`Slot.isHighlightable`), which `draw_hovered_slot_highlight` does. - `AbstractContainerScreen.extractSlotHighlightFront` → `crates/horizon-client/src/game.rs::Game::draw_slot_highlight`: the `_front` sprite over the item; `draw_hovered_slot_highlight` runs back, slots, front. - `AbstractContainerScreen.showTooltipWithItemInHand` → `crates/horizon-client/src/game/stations.rs::Game::tooltip_with_carried`: with a stack carried only a bundle's contents keep their tooltip (`BundleContents.showTooltipWithItemInHand`). - `AbstractRecipeBookScreen.mouseDragged` → `crates/horizon-client/src/game/recipe_book.rs::Game::recipe_book_drag`: a drag out of the focused search box moves its selection end (`EditBox.onDrag`). - `AbstractRecipeBookScreen.isHovering` → `crates/horizon-client/src/game/recipe_book.rs::Game::book_covers_menu`: an open book in a window narrower than the menu covers it, so `slot_at` finds no slot and clicks miss. - `AbstractSignEditScreen.isValid` → `crates/horizon-client/src/game/sign_edit.rs::Game::tick_sign_editor` (inline): the check is the editor's tick; a removed sign, or eyes past the reach + 4, closes it and `removed` sends the text. - `AbstractSignEditScreen.preeditUpdated` → `crates/horizon-client/src/game/ime.rs::Game::ime_preedit` (inline): the composition reaches the focused field of any screen, a sign editor included, and is drawn under its caret. - `CreativeModeInventoryScreen.tryRefreshInvalidatedTabs` → `crates/horizon-client/src/creative.rs::Creative::set_permissions`: rebuilt when `hasPermissions` changes, the selected tab keeping its first row or giving way to the default tab (`refreshCurrentTabContents`). - `CreativeModeInventoryScreen.tryRebuildTabContents` → `crates/horizon-client/src/creative.rs::Creative::rebuild`: the tabs and the search trees are rebuilt from the export. - `CreativeModeInventoryScreen.containerTick` → `crates/horizon-client/src/game.rs::Game::tick`: `refresh_creative_tabs` each tick, then a player without infinite materials gets the survival inventory. - `CreativeModeInventoryScreen.preeditUpdated` → `crates/horizon-client/src/game/ime.rs::Game::ime_preedit` (inline): the search box is a focused field, so the composition shows under its caret. - `CreativeModeInventoryScreen.updateVisibleTags` → `crates/horizon-client/src/creative.rs::Creative::search_tag_lines`: the tags the text after `#` matches, each as a `#namespace:path` line. - `CreativeModeInventoryScreen.getTooltipFromContainerItem` → `crates/horizon-client/src/game.rs::Game::creative_tooltip_tabs`: the containing tabs' names in blue, then a `#` search's tags in dark purple, and none for a category tab's own grid slot. - `CreativeModeInventoryScreen.CustomCreativeSlot.mayPickup` → `crates/horizon-client/src/creative.rs::click_display` (inline): a display slot holding a `creative_slot_lock` stack takes no click. - `CyclingSlotBackground` (class) → `home crates/horizon-client/src/game/stations.rs`: `CyclingSlot` advances an empty slot's icons every 30 ticks with a 4-tick fade, `advance` and `shown`. Left alone: `AbstractContainerScreen.tick` still has no `closeContainer` for a dead player — death only swaps to the death screen — so it stays `missing`. Validation (client and server jars: `server.jar` alone has no client classes, so every row of this file would report "no class"): ``` python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/client.jar --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar >/dev/null && python3 tools/port_ledger.py map-check tools/port_map/gui-inventory-1.tsv 147 rows, no problems. ``` **Proven:** every cited fn is in the tree at that path and its doc names the vanilla member it ports; `map-check` resolves all 147 rows of the file, every class, method and `file::fn` included. **Not proven:** nothing was run in game — the sprite placement, the IME overlay and the tab refresh are read from the code, not watched on screen. Two rows keep a recorded gap rather than a claim: the creative tab rebuild compares `hasPermissions` only, not feature flags or datapacks, and `CustomCreativeSlot.mayPickup`'s `isItemEnabled` feature check is not repeated. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:36:01 +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#7228
No description provided.