Minecraft: Java Edition 26.3 rewritten from scratch in Rust, checked against vanilla with 281 differential harnesses. Get it with the Horizon launcher.
Native hook API fragments
A hook PR adds a uniquely named JSON file here instead of editing the API number,
the API histories or native-hooks.json. Helper-only additions use an empty
hooks array. Example:
{
"hooks": [
{"name": "example", "target": "horizon_client::game::native_hooks::Game<'_>::native_example"}
],
"rust_summary": "an example hook (`native_example`).",
"doc_summary": "an example hook (`native_example`). Bundles need \"hooks\": @API:example@.",
"comments": ["crates/horizon-client/src/game/example.rs"]
}
A hook may also carry the catalog's optional neoforge, side and
cancellable keys; the tool copies them into native-hooks.json.
Name this file example.json. The tool replaces @API:example@ in the
listed comment files and in native_hooks.rs; omit comments if unnecessary.
Summaries may contain newlines. New catalog contracts start at version 1;
this is separate from the global API number. A hook in a pending fragment is
not API yet; do not depend on it until it has a number.
After hook PRs merge, run python3 tools/stamp_native_hooks.py on current
main and open a PR with the result. The tool assigns one API number per
fragment in first-parent merge order. It consumes all pending fragments.
--check exits nonzero when any are pending. Running the tool again does
nothing. For local testing only, run it on a hook branch without committing
the result. If another stamp PR merges first, regenerate from current main.