关于
这是一个旨在提升所有合成相关功能性能的模组。它修复了 Minecraft 1.12 中引入的一个 Bug:按住 Shift 键合成一组物品时可能会导致瞬间卡顿。不过,它的功能不仅仅局限于修复此问题。
合成
FastWorkbench 会导致所有合成操作缓存最后一次使用的配方。此外,它通过仅在合成矩阵中存储的物品实际发生变化时才检测变化(原版会在任何内容变化时重试,例如堆叠数量),从而减少了对该缓存配方的调用次数。这使得匹配操作的次数从原本的一到近 600 次不等,减少到了仅一次。
配方书
在 1.12 版本中,FastWorkbench 完全移除了配方书,这意味着登录时不再强制同步配方,以便客户端能在书中查看它们。这极大地缩短了登录时间。在 1.13 及更高版本中,配方作为新配方系统的一部分无论如何都会被同步。在这些版本中,FastWorkbench 默认情况下会视觉上移除配方书按钮,但可以通过配置将其恢复。
兼容性与模组支持
此模组通过 Mixin 应用于 PlayerContainer 类(用于 2x2 网格)和 WorkbenchContainer 类(用于 3x3 网格)。任何使用 WorkbenchContainer 的模组都将获得 FastWorkbench 的全部优势。
任何未使用 WorkbenchContainer 的模组可能应该自行执行这些优化——添加起来相当简单。
支持我
联系方式
Discord:
About
This is a mod aimed at improving performance of all crafting-related functions. It fixes the bug introduced in Minecraft 1.12 where shift-click
crafting a stack of items could cause momentary freezes. However, it does slightly more than just fixing that issue.
Crafting
FastWorkbench causes all crafting operations to cache the last recipe used. On top of this, it reduces calls to that cached recipe, by only
detecting changes when the stored item in the crafting matrix actually changes (vanilla retries every time anything changes, such as stack size).
This results in the number of matching operations being reduced to one, instead of anywhere between one and nearly 600.
Recipe Book
Back in 1.12, FastWorkbench fully removed the recipe book, which meant recipes were no longer forcibly synced on login so that the client could see
them in the book. This resulted in a huge boost in login times. In 1.13 and higher, the recipes are synced anyway as part of the new recipe
system. In these versions, FastWorkbench visually removes the recipe book button by default, but it can be configured back on.
Compatibility and Mod Support
This mod is applied via Mixin to the classes PlayerContainer (for the 2x2 grid) and WorkbenchContainer (for the 3x3 grid). Any mods utilizing
WorkbenchContainer will receive the full benefits of FastWorkbench.
Any mods not utilizing WorkbenchContainer should probably be performing these optimizations on their own already - they are fairly trivial to add.
Support Me
Contact
Discord:
评论 0
登录后参与评分
还没有评论,来抢沙发吧