Files
horizon-airdef/docs/vertical-anchors.md
T
Ludovic Marie cb19660fbe Build Horizon Rust parity foundations and differential validation
Add version-bound core, world data, geometry, generation and feature implementations with native client/server comparison tools and scoped evidence reports. Apply Horizon project branding.

Workspace tests, Clippy and 147 Python tests passed. Full 51-family survival and expanded provider comparisons are still running; complete gameplay parity and a playable Rust client remain unfinished. Private game artifacts and the isolated simple-block placement work are excluded.
2026-10-06 11:24:51 +02:00

23 lines
1.3 KiB
Markdown

# Vertical anchors
Horizon implements the pinned Java Edition **26.3** vertical anchors: absolute,
above bottom, below top and relative to sea level. Runtime resolution preserves
signed integer wrapping. Codec parsing and encoding enforce the vanilla field
range, preserve decimal truncation and integer wrapping, and follow the nested
exclusive alternatives even when multiple fields appear in one object.
`WorldGenerationContext` carries the minimum, height and sea level. Its generator
adapter chooses the larger minimum and smaller height independently, matching
vanilla; this differs from intersecting the vertical intervals.
Run `python3 tools/test_anchor_parity.py`. The
[local report](../benchmarks/rust-anchor-2026-10-06/scoped-parity.json) records
**181,632 matching output lines per reference JAR**, across **192 fixtures**,
**74,112 codec inputs** and **107,328 runtime anchors**. The original Java
transport calls the actual codecs, helper constructors and generation context,
including the native noise-based chunk generator for bounds comparisons.
Sources and fixtures are hash-checked before publishing results. Raw reference
output stays under `.local`. These tests cover anchor behavior and the three
context values, not complete material rules, level access or JSON diagnostic text.