[PR #4402] [MERGED] Docs: model native hook points on NeoForge 26.3 events (proposal) #5605

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4402
Author: @levzzz5154
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: docs/native-hooks-neoforge


📝 Commits (5)

  • ea678bc Docs: proposal to model native hook points on NeoForge 26.3 events
  • ca2955e Merge main
  • 5f0ac95 Native hooks doc: NeoForge's public documentation only, firing points from vanilla
  • a00475b Merge remote-tracking branch 'hr/main' into rv/4402
  • a3ba925 Native hooks proposal: bring up to date with main, cite NeoForge's public docs per claim, drop uncited detail

📊 Changes

2 files changed (+124 additions, -1 deletions)

View changed files

📝 docs/README.md (+1 -1)
➕ docs/native-hooks-neoforge.md (+123 -0)

📄 Description

🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Opus 5.5), not by levzzz5154 themselves.

A proposal, docs only: every new native hook point takes its name, firing point, side and cancel contract from the NeoForge 26.3 event that does the same thing (ServerTickEvent.Pre → server_tick_pre). Names and semantics only, no NeoForge code (LGPL-2.1).

What it settles, if agreed:

  • Rules: names, firing points (where NeoForge's patch calls the event), sides (server / client / both, interactions on both like NeoForge), canceled: &mut bool and result out-parameters, contracts frozen once merged, API numbers given at merge instead of when a PR opens.
  • Catalog fields neoforge, side, cancellable (horizon-mixins ignores unknown fields).
  • Mapping of the hooks we have and of the PRs in flight, with what each should change: #3878 fires Start at the top of tick_server; #4284 becomes item_tooltip; #4302 splits into right_click_item / right_click_block on both sides (that removes the double call); Sylviromi's block entity stack takes NeoForge's ticker / capability (ResourceHandler<ItemResource>, EnergyHandler) / menu / screen split.
  • A priority list of next hooks (block break/place, interactions, player and level ticks, damage, death, drops, chunks, containers, chat; client ticks, GUI layers, screens).

Comments welcome from @arismoko, @ludovicthenot and @Sylviromi in particular: the open questions are at the end.

🤖 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/4402 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `docs/native-hooks-neoforge` --- ### 📝 Commits (5) - [`ea678bc`](https://github.com/horizon-rust/horizon/commit/ea678bc6e6d0dd8c5d7d25fd7d83afd819d9b98d) Docs: proposal to model native hook points on NeoForge 26.3 events - [`ca2955e`](https://github.com/horizon-rust/horizon/commit/ca2955ef0c39c6b06599ad7118083c1720efdc41) Merge main - [`5f0ac95`](https://github.com/horizon-rust/horizon/commit/5f0ac951354f59ff620965f125e8ba6baa949d6f) Native hooks doc: NeoForge's public documentation only, firing points from vanilla - [`a00475b`](https://github.com/horizon-rust/horizon/commit/a00475b9107050e4bacc81a003960cc9d8724fb7) Merge remote-tracking branch 'hr/main' into rv/4402 - [`a3ba925`](https://github.com/horizon-rust/horizon/commit/a3ba9256a48bbb07cb435d42cd58ee0b3e3bb36a) Native hooks proposal: bring up to date with main, cite NeoForge's public docs per claim, drop uncited detail ### 📊 Changes **2 files changed** (+124 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/README.md` (+1 -1) ➕ `docs/native-hooks-neoforge.md` (+123 -0) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Opus 5.5), not by levzzz5154 themselves. A proposal, docs only: every new native hook point takes its name, firing point, side and cancel contract from the NeoForge 26.3 event that does the same thing (`ServerTickEvent.Pre` → `server_tick_pre`). Names and semantics only, no NeoForge code (LGPL-2.1). What it settles, if agreed: - **Rules:** names, firing points (where NeoForge's patch calls the event), sides (`server` / `client` / `both`, interactions on both like NeoForge), `canceled: &mut bool` and result out-parameters, contracts frozen once merged, API numbers given at merge instead of when a PR opens. - **Catalog fields** `neoforge`, `side`, `cancellable` (horizon-mixins ignores unknown fields). - **Mapping** of the hooks we have and of the PRs in flight, with what each should change: #3878 fires Start at the top of `tick_server`; #4284 becomes `item_tooltip`; #4302 splits into `right_click_item` / `right_click_block` on both sides (that removes the double call); Sylviromi's block entity stack takes NeoForge's ticker / capability (`ResourceHandler<ItemResource>`, `EnergyHandler`) / menu / screen split. - **A priority list** of next hooks (block break/place, interactions, player and level ticks, damage, death, drops, chunks, containers, chat; client ticks, GUI layers, screens). Comments welcome from @arismoko, @ludovicthenot and @Sylviromi in particular: the open questions are at the end. 🤖 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:13:44 +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#5605
No description provided.