[PR #5390] [MERGED] Native hooks: stamp API 47-57 from the pending fragments #6255

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

📋 Pull Request Information

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

Base: main ← Head: chore/stamp-native-hooks-46


📝 Commits (1)

  • 381c62a Native hooks: stamp API 47-57 from the pending fragments

📊 Changes

18 files changed (+244 additions, -160 deletions)

View changed files

📝 crates/horizon-client/src/game/machines/native_fluids.rs (+5 -5)
📝 crates/horizon-client/src/game/machines/native_items.rs (+5 -5)
📝 crates/horizon-client/src/game/native_hooks.rs (+56 -16)
📝 crates/horizon-client/src/game/native_server.rs (+6 -6)
📝 docs/native-mods.md (+106 -0)
📝 docs/smp.md (+1 -1)
📝 native-hooks.json (+65 -0)
➖ tools/native-hook-fragments/block_items.json (+0 -8)
➖ tools/native-hook-fragments/chunks_players.json (+0 -22)
➖ tools/native-hook-fragments/entity_join_level.json (+0 -10)
➖ tools/native-hook-fragments/entity_leave_level.json (+0 -10)
➖ tools/native-hook-fragments/fluids.json (+0 -13)
➖ tools/native-hook-fragments/fluids_move.json (+0 -8)
➖ tools/native-hook-fragments/living_incoming_damage.json (+0 -10)
➖ tools/native-hook-fragments/menu_button_v2.json (+0 -10)
➖ tools/native-hook-fragments/mob_effect_hooks.json (+0 -22)
➖ tools/native-hook-fragments/native-block-entity-sync.json (+0 -5)
➖ tools/native-hook-fragments/native-sidebar.json (+0 -9)

📄 Description

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

python3 tools/stamp_native_hooks.py on main 1e16d07, as tools/native-hook-fragments/README.md asks after hook PRs
merge. It consumes the 11 pending fragments in first-parent merge order: 47 entity_join_level, 48 block_items,
49 native-sidebar (#5268: one player's sidebar and Tab list, tick stats, AFK out of the sleep count), 50
living_incoming_damage, 51 menu_button_v2, 52 native-block-entity-sync, 53 entity_leave_level, 54 fluids,
55 fluids_move, 56 mob_effect_hooks, 57 chunks_players. (Restamped: main moved to 46 and gained fragments
since the first version of this PR.)

NATIVE_HOOKS_API 46 → 57, the histories in native_hooks.rs and docs/native-mods.md, native-hooks.json, and the
@API:...@ markers in listed comment files. One hand edit: "API 49 adds, in
native_server.rs, ..." (a comma the fragment's summary lacked). No code changes.

horizon-mods pins wait for this number: the SMP's sidebar (horizon-mods#97) and its stack are repinned to this merge.

The two local failures below are main's own, not this diff (it touches no code or test): test_triage_command
(a new login in the nightly's repo list) and test_perf_bench; lan_bot failed under a loaded Mac mini (8 of 14,
"placed block was not broadcast"). CI runs them on a clean runner.

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

Check Result
Scope ✅ 10 files, +105 −53
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ❌ 500 run, FAILED (failures=1, errors=1, skipped=1) (2 min 52 s)
rustfmt ✅ (17 s)
clippy ✅ (4 min 27 s)
tests: horizon-client ❌ 1429 passed, 8 failed (12 min 23 s)
doc tests ✅ 0 passed (3 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 ➖ 34 affected, to run in CI (--quick): block_removal, command_exec, composter, crafter, cursor_death, dedicated_server, dispenser, forced_end, friends_integration, hardcore_respawn, held_item_stack, lan_auth and 22 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 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/5390 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/stamp-native-hooks-46` --- ### 📝 Commits (1) - [`381c62a`](https://github.com/horizon-rust/horizon/commit/381c62a408fbf384e9d12fed5d60773fb300d087) Native hooks: stamp API 47-57 from the pending fragments ### 📊 Changes **18 files changed** (+244 additions, -160 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/machines/native_fluids.rs` (+5 -5) 📝 `crates/horizon-client/src/game/machines/native_items.rs` (+5 -5) 📝 `crates/horizon-client/src/game/native_hooks.rs` (+56 -16) 📝 `crates/horizon-client/src/game/native_server.rs` (+6 -6) 📝 `docs/native-mods.md` (+106 -0) 📝 `docs/smp.md` (+1 -1) 📝 `native-hooks.json` (+65 -0) ➖ `tools/native-hook-fragments/block_items.json` (+0 -8) ➖ `tools/native-hook-fragments/chunks_players.json` (+0 -22) ➖ `tools/native-hook-fragments/entity_join_level.json` (+0 -10) ➖ `tools/native-hook-fragments/entity_leave_level.json` (+0 -10) ➖ `tools/native-hook-fragments/fluids.json` (+0 -13) ➖ `tools/native-hook-fragments/fluids_move.json` (+0 -8) ➖ `tools/native-hook-fragments/living_incoming_damage.json` (+0 -10) ➖ `tools/native-hook-fragments/menu_button_v2.json` (+0 -10) ➖ `tools/native-hook-fragments/mob_effect_hooks.json` (+0 -22) ➖ `tools/native-hook-fragments/native-block-entity-sync.json` (+0 -5) ➖ `tools/native-hook-fragments/native-sidebar.json` (+0 -9) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. `python3 tools/stamp_native_hooks.py` on main 1e16d07, as `tools/native-hook-fragments/README.md` asks after hook PRs merge. It consumes the 11 pending fragments in first-parent merge order: 47 `entity_join_level`, 48 `block_items`, 49 `native-sidebar` (#5268: one player's sidebar and Tab list, tick stats, AFK out of the sleep count), 50 `living_incoming_damage`, 51 `menu_button_v2`, 52 `native-block-entity-sync`, 53 `entity_leave_level`, 54 `fluids`, 55 `fluids_move`, 56 `mob_effect_hooks`, 57 `chunks_players`. (Restamped: main moved to 46 and gained fragments since the first version of this PR.) `NATIVE_HOOKS_API` 46 → 57, the histories in `native_hooks.rs` and `docs/native-mods.md`, `native-hooks.json`, and the `@API:...@` markers in listed comment files. One hand edit: "API 49 adds, in `native_server.rs`, ..." (a comma the fragment's summary lacked). No code changes. horizon-mods pins wait for this number: the SMP's sidebar (horizon-mods#97) and its stack are repinned to this merge. The two local failures below are main's own, not this diff (it touches no code or test): `test_triage_command` (a new login in the nightly's repo list) and `test_perf_bench`; `lan_bot` failed under a loaded Mac mini (8 of 14, "placed block was not broadcast"). CI runs them on a clean runner. **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at a73460037, 20 min 42 s) | Check | Result | | --- | --- | | Scope | ✅ 10 files, +105 −53 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ❌ 500 run, FAILED (failures=1, errors=1, skipped=1) (2 min 52 s) | | rustfmt | ✅ (17 s) | | clippy | ✅ (4 min 27 s) | | tests: horizon-client | ❌ 1429 passed, 8 failed (12 min 23 s) | | doc tests | ✅ 0 passed (3 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 | ➖ 34 affected, to run in CI (--quick): block_removal, command_exec, composter, crafter, cursor_death, dedicated_server, dispenser, forced_end, friends_integration, hardcore_respawn, held_item_stack, lan_auth and 22 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 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 06:16:24 +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#6255
No description provided.