Repository navigation
feat(build): 添加 Minecraft 26.3 NeoForge 支持 - #15
Merged
Merged
Conversation
- 新增 NeoForge 26.3 Stonecutter 构建目标及依赖配置 - 仅对 Minecraft 26.3 及以上 NeoForge 目标使用 NFRT 2.0.31 - 修复旧 JST 无法转换匿名类成员访问级别导致的 Minecraft 重编译失败
Ftimever
approved these changes
Oct 1, 2026
Member
zkhssb
approved these changes
Oct 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
为 Minecraft 26.3 新增 NeoForge 构建目标,使用 NeoForge 26.3.0.37-beta,并复用现有共享代码的 26.3 条件宏。
当前 ModDevGradle 默认使用的 NFRT 2.0.18 / JST 2.0.6 无法正确应用匿名类成员的访问转换,导致 Minecraft 自身的 HolderSet 源码重编译失败。仅为 >=26.3 的 NeoForge 目标指定 NFRT 2.0.31(包含 JST 2.0.11),使构建成功;旧目标继续使用原有工具链。
验证
:26.3-neoforge:buildAndCollect(包含build):26.2-neoforge:buildAndCollect(旧版本回归)Donegit diff --check测试说明
测试环境为 Windows、Java 25.0.3、NeoForge 26.3.0.37-beta。
已在本机完成真实后端连接与身份验证实测,运行正常。
上游修复参考