FastWorkbench

FastWorkbench

热度 1339833649
最近更新11 个月前
对工作台的性能升级。 A performance upgrade for the crafting table.

关于

这是一个旨在提升所有与合成相关功能性能的模组。它修复了Minecraft 1.12版本引入的一个漏洞,即按住Shift点击合成一组物品时可能会导致短暂卡顿。不过,它的作用不仅仅局限于修复这个问题。

合成

“快速工作台”模组会让所有合成操作缓存上次使用的配方。除此之外,它还减少了对缓存配方的调用次数,仅在合成矩阵中存储的物品实际发生变化时才进行检测(原版每次有任何变化,比如物品堆叠数量变化时都会重新尝试匹配配方)。这使得匹配操作的次数减少到一次,而不是原本的一到近600次之间。

配方书

在1.12版本中,“快速工作台”模组完全移除了配方书,这意味着登录时不再强制同步配方,这样客户端就无法在配方书中看到它们。这使得登录时间大幅缩短。在1.13及更高版本中,作为新配方系统的一部分,配方无论如何都会同步。在这些版本中,“快速工作台”模组默认会在视觉上移除配方书按钮,但可以重新配置启用。

兼容性与模组支持

这个模组通过Mixin应用到PlayerContainer类(用于2x2合成网格)和WorkbenchContainer类(用于3x3合成网格)。任何使用WorkbenchContainer的模组都能充分享受到“快速工作台”模组的优势。

任何不使用WorkbenchContainer的模组可能本来就应该自行进行这些优化——添加这些优化相当简单。

联系

Discord:https://discord.gg/wdvU5Yz


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.

Contact

Discord: https://discord.gg/wdvU5Yz

本站是资源分享站,资源均来自于互联网和用户自发分享,仅供学习和交流使用。如有版权问题,请联系管理员删除。

评论区 (0)

登录 后才能发表评论

暂无评论

快来发表第一条评论吧!