Skip to content

feat(mod-loaders): complete neoforge for 26.x, drop forge/quilt, fix fabric metrics#179

Merged
NonSwag merged 12 commits into
mainfrom
feat/more-mod-loaders-26x
Jun 18, 2026
Merged

feat(mod-loaders): complete neoforge for 26.x, drop forge/quilt, fix fabric metrics#179
NonSwag merged 12 commits into
mainfrom
feat/more-mod-loaders-26x

Conversation

@NonSwag

@NonSwag NonSwag commented Jun 18, 2026

Copy link
Copy Markdown
Member

Supersedes #174, opening a new PR since edits are not possible, also targeting main now


What this does

Builds on PR #168 to make NeoForge fully functional on Minecraft 26.x, removes Forge and Quilt, and fixes a Fabric client-lifecycle bug. Targets feat/more-mod-loaders.

NeoForge

Switches the module from the loader-only stub to ModDevGradle (net.neoforged.moddev) against NeoForge 26.1.2.76, which puts Minecraft on the compile classpath.

  • All four default metrics: minecraft_version, platform_version, player_count, online_mode.
  • Client/server split (NeoForgeMetricsClient / NeoForgeMetricsServer), selected by physical side via FMLEnvironment.getDist().
  • ready() / shutdown() wired to ServerStartedEvent / ServerStoppingEvent; the client relies on the periodic submitter, since NeoForge has no client-stop event.
  • Null-safe mod lookup (getModContainerById) and server-reference capture (on ServerStartedEvent), mirroring the Fabric module's patterns.

Forge and Quilt (removed)

The FastStats SDK build is a single Gradle 9 toolchain (Fabric needs Loom 1.15, NeoForge needs ModDevGradle), and a Gradle build has one wrapper version.

  • Forge does have a 26.x release (net.minecraftforge:forge up to 26.1.2-64.0.x), but modern Forge builds only with ForgeGradle (ModDevGradle's legacyforge plugin stops at 1.20.1), and the latest ForgeGradle (6.0.54) does not support Gradle 9 ("Versions Gradle 9.0 and newer are not supported yet"). Since it cannot run alongside the Gradle 9 toolchain Fabric and NeoForge require, Forge cannot be included here. It can return once ForgeGradle adds Gradle 9 support, or on a separate Gradle 8 build.
  • Quilt has no 26.x release at all (quilt-mappings stop at 1.21.11), so there is nothing to build against yet.

Fabric

  • Fixes client metrics shutting down on CLIENT_STARTED instead of CLIENT_STOPPING (they stopped immediately after startup).
  • Adds platform_version (the Fabric loader version) so Fabric and NeoForge report a consistent default schema.

Verification

  • The fabric and neoforge library jars and the NeoForge example-mod jar all build, and core tests pass.

For review

Bumps version to 0.26.2.

@NonSwag NonSwag self-assigned this Jun 18, 2026
@NonSwag NonSwag merged commit a98edf2 into main Jun 18, 2026
2 checks passed
@NonSwag NonSwag deleted the feat/more-mod-loaders-26x branch June 18, 2026 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants