[PR #3180] [MERGED] Crate split B7: the furnace's recipe logic leaves containers #4834

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3180
Author: @ludovic111
Created: 10/28/2026
Status: ✅ Merged
Merged: 10/28/2026
Merged by: @ludovic111

Base: main ← Head: refactor/furnace-cooking


📝 Commits (3)

  • a34a41e refactor: move the furnace's recipe logic out of containers
  • 4b4950d Merge branch 'refactor/be-layer-deps' into refactor/furnace-cooking
  • 8b5a27e Merge remote-tracking branch 'origin/main' into refactor/furnace-cooking

📊 Changes

8 files changed (+181 additions, -166 deletions)

View changed files

📝 crates/horizon-client/examples/probe/menu_fixture.rs (+1 -0)
📝 crates/horizon-client/src/containers.rs (+2 -166)
➕ crates/horizon-client/src/furnace.rs (+173 -0)
📝 crates/horizon-client/src/game.rs (+1 -0)
📝 crates/horizon-client/src/game/block_entity_ticks.rs (+1 -0)
📝 crates/horizon-client/src/game/lan_crafting.rs (+1 -0)
📝 crates/horizon-client/src/game/spill.rs (+1 -0)
📝 crates/horizon-client/src/lib.rs (+1 -0)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Step B7 of the horizon-client crate split (ci-speed), after B6 (#2988, merged). containers is the last block-entity module that still reached gameplay: impl Furnace used crafting::Recipes. This PR moves that logic out so containers can move into the render/world crate whole (B9).

What

Moves only:

  • impl Furnace's four methods (set_input, recipe_experience, input_clicked, tick) move unchanged into a new furnace module. They become the extension trait FurnaceCooking, implemented for the Furnace data, together with the two helpers only they use (remainder, total_time).
  • Callers add one use horizon_client::furnace::FurnaceCooking (game.rs, block_entity_ticks, lan_crafting, spill, the menu fixture).

After this PR, containers reaches no gameplay module (checked on the lib's module dependency graph). No behaviour change.

Open PRs touching containers.rs (#2959, #2960, #3131) still merge cleanly with this head (git merge-tree).

Checks

Full tools/pr_ready.py on the Mac mini, harnesses included, on this head (main b6c936f82 merged in):

pr_ready (tools/pr_ready.py on ludovics-mac-mini, against origin/main at b6c936f82, 20 min 46 s)

Check Result
Scope ✅ 8 files, +181 −166
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 398 passed (51 s)
rustfmt ✅ (4 s)
clippy ✅ (53 s)
tests: horizon-client ✅ 1261 passed (1 min 53 s)
doc tests ✅ 0 passed (28 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ✅ 69 affected, 68 passed (16 min 33 s)

Parity: 0 failed.

🤖 Generated with Claude Code


🔄 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/3180 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `refactor/furnace-cooking` --- ### 📝 Commits (3) - [`a34a41e`](https://github.com/horizon-rust/horizon/commit/a34a41e1b558196263e9fa63608c365cec74e9cb) refactor: move the furnace's recipe logic out of containers - [`4b4950d`](https://github.com/horizon-rust/horizon/commit/4b4950d7c42f08b736d69f5c99e4bd14e7ec6c5f) Merge branch 'refactor/be-layer-deps' into refactor/furnace-cooking - [`8b5a27e`](https://github.com/horizon-rust/horizon/commit/8b5a27ed3fe824538eca35913324d2bba2e0582b) Merge remote-tracking branch 'origin/main' into refactor/furnace-cooking ### 📊 Changes **8 files changed** (+181 additions, -166 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/examples/probe/menu_fixture.rs` (+1 -0) 📝 `crates/horizon-client/src/containers.rs` (+2 -166) ➕ `crates/horizon-client/src/furnace.rs` (+173 -0) 📝 `crates/horizon-client/src/game.rs` (+1 -0) 📝 `crates/horizon-client/src/game/block_entity_ticks.rs` (+1 -0) 📝 `crates/horizon-client/src/game/lan_crafting.rs` (+1 -0) 📝 `crates/horizon-client/src/game/spill.rs` (+1 -0) 📝 `crates/horizon-client/src/lib.rs` (+1 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Step B7 of the horizon-client crate split (ci-speed), after B6 (#2988, merged). `containers` is the last block-entity module that still reached gameplay: `impl Furnace` used `crafting::Recipes`. This PR moves that logic out so `containers` can move into the render/world crate whole (B9). ## What Moves only: - `impl Furnace`'s four methods (`set_input`, `recipe_experience`, `input_clicked`, `tick`) move unchanged into a new `furnace` module. They become the extension trait `FurnaceCooking`, implemented for the `Furnace` data, together with the two helpers only they use (`remainder`, `total_time`). - Callers add one `use horizon_client::furnace::FurnaceCooking` (game.rs, block_entity_ticks, lan_crafting, spill, the menu fixture). After this PR, `containers` reaches no gameplay module (checked on the lib's module dependency graph). No behaviour change. Open PRs touching `containers.rs` (#2959, #2960, #3131) still merge cleanly with this head (`git merge-tree`). ## Checks Full `tools/pr_ready.py` on the Mac mini, harnesses included, on this head (main b6c936f82 merged in): **pr_ready** (`tools/pr_ready.py` on ludovics-mac-mini, against origin/main at b6c936f82, 20 min 46 s) | Check | Result | | --- | --- | | Scope | ✅ 8 files, +181 −166 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 398 passed (51 s) | | rustfmt | ✅ (4 s) | | clippy | ✅ (53 s) | | tests: horizon-client | ✅ 1261 passed (1 min 53 s) | | doc tests | ✅ 0 passed (28 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ✅ 69 affected, 68 passed (16 min 33 s) | Parity: 0 failed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:08:17 +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#4834
No description provided.