作者:rebot | 分类:模组
Minecraft 版本: 1.21.11
平台: fabric
标签: optimization utility
This is an unofficial port of FastWorkbench to Fabric for Minecraft 1.21+. The original mod was developed by shadows_of_fire for Forge/NeoForge.
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.
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.
In modern versions, the recipes are synced as part of the recipe system. FastWorkbench visually removes the recipe book button by default, but it can be configured back on.
This mod is applied via Mixin to the classes PlayerScreenHandler (for the 2x2 grid) and CraftingScreenHandler (for the 3x3 grid). Any mods utilizing these handlers will receive the full benefits of FastWorkbench.
Any mods not utilizing these handlers should probably be performing these optimizations on their own already - they are fairly trivial to add.
Original mod: FastWorkbench on CurseForge
请登录后举报
暂无评论,抢个沙发吧~