Monument Data Fix
一个允许模组开发者注册自定义数据修复器的库。
什么是数据修复器?
正如 Mojang 在 readme 文件中所述,DataFixerUpper 是“一组旨在用于增量构建、合并和优化数据转换的工具”。它被创建用于在不同游戏版本之间转换游戏数据。
Monument Data Fix 的作用是什么?
Monument Data Fix 为模组开发者提供了一套 API,用于创建自定义数据修复器。该模组默认为 Sweet Potato Reborn 和 Xdi8Aho Mod 提供了数据修复器,这允许你将带有 Sweet Potato Mod 的 Minecraft 1.16-1.19 存档升级到带有 Sweet Potato Reborn 的 Minecraft 1.21+,或者将带有 Xdi8Aho Mod 的 Minecraft 1.18.2 存档升级到带有 Xdi8Aho Mod 和 Sweet Potato Reborn 的 Minecraft 1.21.4+。
注意:在 Minecraft 1.18.2 中,Xdi8Aho Mod 是 Sweet Potato Mod 与 Xdi8Aho Mod 自身内容的结合体。然而,Xdi8Aho Mod 现已拆分为两个独立的模组,目前 Xdi8Aho Mod 仅包含其自身的内容。因此,你需要在 Minecraft 1.21.4+ 中同时安装 Xdi8Aho Mod 和 Sweet Potato Reborn。否则,游戏会删除它无法识别的旧方块。
我需要这个模组吗?
对于普通玩家:如果你不需要升级带有模组的存档,则不需要安装 Monument Data Fix。如果你有一个需要升级的模组存档,且模组开发者说明 Monument Data Fix 是必需的依赖项,则应安装此模组。
对于模组开发者:如果你想让你的模组存档能够被升级,请制作一个以 Monument Data Fix 为依赖的数据修复器模组,并在模组描述中指出“升级存档时需要 Monument Data Fix”。
目前该模组没有程序文档。为了添加你的自定义数据修复器,请在调用 net.minecraft.util.datafix.DataFixers$addFixers 之前调用 top.qwerty770.monument.datafix.api.DataFixerRegistry$addDataFix(String name, CustomDataFixer dataFixer) 或 top.qwerty770.monument.datafix.api.DataFixerRegistry$addDataFix(String name, Function<DataFixerBuilder, DataFix> dataFixer)。如果对注册表有疑问,可以参考 Monument Data Fix 本身作为示例,因为它默认提供了两个模组的数据修复器。你可以在 Github 上提交问题。
外部链接
Monument Data Fix
A library that enables modders to register customized data fixers.
What is Data Fixer?
As Mojang said in the readme file, DataFixerUpper is "a set of utilities designed for incremental building, merging, and optimization of data transformations". It is created for converting the game data between different versions of the game.
What does Monument Data Fix do?
Monument Data Fix provides a set of APIs for modders to create customized data fixers. The mod by default provides data fixers for Sweet Potato Reborn and Xdi8Aho Mod, which allows you to upgrade a save in Minecraft 1.16-1.19 with Sweet Potato Mod to Minecraft 1.21+ with Sweet Potato Reborn, or upgrade a save in Minecraft 1.18.2 with Xdi8Aho Mod to Minecraft 1.21.4+ with Xdi8Aho Mod and Sweet Potato Reborn.
Note: In Minecraft 1.18.2, Xdi8Aho Mod was a combination of Sweet Potato Mod and the own content of Xdi8Aho Mod. However, Xdi8Aho Mod has already been separated into the two mods, and now Xdi8Aho Mod only contains the content of its own. Therefore, you need to install Xdi8Aho Mod and Sweet Potato Reborn at the same time in Minecraft 1.21.4+. Otherwise, the game would delete the old blocks which it could not recognize.
Do I need this mod?
For general players: If you don't need to upgrade a modded save, you don't need Monument Data Fix. If you have a modded save to upgrade, and the mod developer states that Monument Data Fix is needed as a dependency, you should install this mod.
For mod developers: If you would like to enable your mod saves to be upgraded, make a data fixer mod using Monument Data Fix as a dependency and point out "Monument Data Fix is needed when upgrading saves" in the mod description.
Currently, there isn't a program document for the mod. In order to add your custom data fixers, call top.qwerty770.monument.datafix.api.DataFixerRegistry$addDataFix(String name, CustomDataFixer dataFixer) or top.qwerty770.monument.datafix.api.DataFixerRegistry$addDataFix(String name, Function<DataFixerBuilder, DataFix> dataFixer) before net.minecraft.util.datafix.DataFixers$addFixers is called. If you have questions on the registry, refer to Monument Data Fix itself as an example, because it provides data fixers for two mods by default. You may submit issues on Github.
External Links
评论 0
登录后参与评分
还没有评论,来抢沙发吧