Repository navigation
为 Minecraft 26.1 迁入通用工具库 - #1
Merged
Merged
Conversation
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.1.2、NeoForge 26.1.2.126 和 Java 25。迁入集合与缓存、调度和异步存档、区块与空间查询、库存和流体事务、同步按键、客户端模型与渲染。原始类型集合使用版本目录中声明的 fastutil,坐标热路径保存原版打包长整型。EXIT 暂缓。
包与入口
utils放置FileUtils、ItemUtils、FluidUtils、InventoryUtils、NumberUtils和其他通用静态入口。物品与流体分栈归对应工具,方块朝向和模型面边界由DirectionUtils提供。api中的集合、调度、维度、方块实体索引和数据按职责组织。api.data.FastSavedData通过独立写盘数据和版本确认实现异步保存,LevelStore负责维度卸载时的状态释放。client.model提供ModelUtils和四边形读写视图。QuadUtils汇总法线、颜色插值和贴图 UV,区段采集和网格生成同属client.render.geometry。原版注入放在mixin.mc下,由同一个 Mixin 配置登记。入口归并
FileUtils使用。物品栈的旧格式入口为ItemUtils.SERIALIZER,带组件的栈数据使用 Minecraft 和 NeoForge 提供的 Codec。FastSavedData自己维护。区块查询与维度存储的注入类型分别归入LoadedChunks和LevelStore。作用域和配料调用方使用Scope.Owned、Scope.Key和IngredientMatching.CountedRequirement。EffectRenderer.Source,烘焙面适配由QuadView.of提供,区段采集返回SectionGeometryCapture.Geometry。验证
check clientClasses jar slimJar sourcesJar通过。核对了两个运行 JAR 中的入口、Mixin 配置、效果着色器与依赖,以及源码 JAR 中的新路径。runGameTestServer通过原版minecraft:always_pass,保存三个维度并正常退出。save-all flush与正常停服,并核对了客户端首次资源加载和退出。中文使用说明