Files
hearth/script/worldofsosal-client-info/BUILD-EVIDENCE.md
T

130 lines
5.2 KiB
Markdown

# Build evidence
Observed on 2026-11-12 in `/home/yukkop/pj/hearth/script/worldofsosal-client-info`.
This records an actual successful build, not a proposed command.
## Command and result
After fetching the official Gradle v9.2.1 wrapper scripts and wrapper JAR:
```sh
GRADLE_USER_HOME="$PWD/.gradle-home" sh gradlew --console=plain build
```
The asynchronous monitor was `mon_849BYA5S2BE0FF47`, with underlying
terminal session `bash_5`. Its completion notification reported
`watcher completed (exit code 0)`. A subsequent result receipt through
`bash_output` on that monitor reported `status: completed exit_code: 0`.
Observed output:
```text
> Task :compileJava
> Task :processResources
> Task :classes
> Task :jarJar NO-SOURCE
> Task :jar
> Task :sourcesJar
> Task :assemble
> Task :compileTestJava NO-SOURCE
> Task :processTestResources NO-SOURCE
> Task :testClasses UP-TO-DATE
> Task :test NO-SOURCE
> Task :check UP-TO-DATE
> Task :build
BUILD SUCCESSFUL in 4m 49s
5 actionable tasks: 5 executed
```
Toolchain: OpenJDK `21.0.7+6-nixos`, Gradle `9.2.1`,
ModDevGradle `2.0.148`, NeoForge `21.1.250`,
NeoForm `1.21.1-20240808.144430`.
The wrapper verifies the Gradle distribution SHA-256 pinned in its properties.
There was one build invocation; no subsequent rebuild.
## Artifacts inspected
```text
build/libs/worldofsosal-client-info-1.0.0.jar
SHA-256 841c6976fe9cdf783ecd4d48295f6ef042dff9cb65274bb6e1c917be31474a0f
build/libs/worldofsosal-client-info-1.0.0-sources.jar
SHA-256 be451a549dc70377f2c04eac90b5e80adb0eb08ea9ce6ab92a79c65125034dc9
```
`jar tf` confirmed the installable JAR contains:
- `PackInfo.class` and its lazy-loading holder;
- `WorldOfSosalClientInfo.class`;
- `mixin/MinecraftTitleMixin.class`;
- `worldofsosal-client-info.mixins.json`;
- `META-INF/neoforge.mods.toml`.
No dependency libraries or server/network payload classes are bundled.
`javap -v` on the compiled mixin confirmed Java class major version `65`
(Java 21), the exact `createTitle()Ljava/lang/String;` injection selector,
and `CallbackInfoReturnable` interaction in the compiled constant pool.
## Exact API and control-flow inspection
The build generated `build/moddev/artifacts/neoforge-21.1.250-sources.jar`
and `neoforge-21.1.250.jar`. Selected official sources were extracted into
ignored `build/api-source/` for inspection. These are generated verification
inputs, not addon sources.
In the generated `net/minecraft/client/Minecraft.java`:
- Line 467 passes `this.createTitle()` directly to `virtualScreen.newWindow`
in the constructor. The hook therefore covers the first Minecraft window
title, before joining a server.
- Lines 716-720 define `updateTitle()` and the private, no-argument
`String createTitle()` method. The original implementation handles a null
connection, so no successful login is required.
- Line 1064 updates the title during screen changes. Rejected connections
can show a disconnect screen while retaining the injected metadata.
- Lines 2134-2184 show disconnect teardown, including
`updateScreenAndTick(...)` and `updateLevelInEngines(null)`.
Line 2242 updates the title from `updateLevelInEngines`.
In generated `net/minecraft/client/multiplayer/ClientPacketListener.java`:
- `handleLogin` begins at line 394; line 432 calls `ClientHooks.firePlayerLogin`
after player initialization. Inspection through the end of that method
found no subsequent chat clearing.
- `handleRespawn` begins at line 1102; line 1171 uses `firePlayerRespawn`.
Dimension changes and respawn therefore do not use the login event.
The downloaded official `neoforge-21.1.250-sources.jar` confirms
`ClientHooks.firePlayerLogin` posts `LoggingIn` at lines 722-723, while
`firePlayerRespawn` posts `Clone` at lines 730-731. The
`ClientPlayerNetworkEvent` source documents the main NeoForge event bus and
logical-client side, and provides `getConnection()`.
Generated `ChatComponent.java`, lines 178-185, confirms `addMessage(Component)`
adds a local GUI message through its display queues and local log; it does
not call a network sender. The addon calls that HUD API directly.
Official NeoForge 1.21.1 documentation was also read through Context7 and
the official site for `@Mod(dist = Dist.CLIENT)`, side isolation,
`[[mixins]]`, and client-side dependency declarations. References and the
exact metadata schema are in `README.md`.
## Scope and remaining runtime QA
Only `script/worldofsosal-client-info/**` was edited. No commits, production
changes, server installation, publication, or pack metadata generation were
performed.
No GUI runtime tests or automated unit tests were run. Gradle reports
`test NO-SOURCE`; successful compilation is not gameplay evidence. Java and
JSON editor diagnostics were unavailable because `jdtls` and `biome` are
not installed; the actual Java compiler and resource packaging succeeded.
Main task owns the runtime acceptance plan in `README.md`: cold startup,
pre-login rejection/disconnect title, one local network-login message,
reconnection, no dimension/respawn duplication, no remote/server chat,
missing/invalid metadata, and optional disposable dedicated-server no-op
verification. The separate NeoForge bootstrap window before Minecraft is
constructed is outside this Minecraft title hook.