Repository navigation
合并 1.21 Kotlin 重写并适配 26.1 - #10
Merged
Merged
Conversation
基于 26.1 分支的 fe1a030 源码快照。
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.
目的
将
origin/1.21的 Kotlin 重写与本地化功能合入26.1版本线。合并提交包含26.1基线041686c和 1.21 重写 #9 的7260636。实现细节
26.1.2、NeoForge26.1.2.126和 Java25。物品和方块构造属性绑定注册 Key,BlockItem 复用方块的原生翻译 Key。localization-processor子模块,通过 JSR 269 和 KSP 收集注解。Builder、手动声明和注解在 DataGen 按输出目录统一汇总。RegistrateLib和测试模组的@Mod入口使用 Java。测试模组把同一个Registrate交给 Kotlin 注册类。验证
build --offline通过,包含 Spotless。runGameTestServer --offline的 8 个必需用例全部通过,其中 7 个来自本项目。runTestdata的全量和服务端模式均通过,使用独立输出目录。兼容性
从 1.21.1 迁移的调用方需要适配
Identifier、新版着色与刷怪蛋接口,以及烹饪配方的CookingBookCategory。Java 与 Kotlin 的源码样例及本地化处理器接入见 26.1 迁移说明。