跳到正文

CraftBoost

作者:mccmcaozr

Crafting recipe matching cache optimization mod — Fabric / NeoForge / Forge

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

CraftBoost

Crafting recipe matching cache optimization mod — Fabric / NeoForge / Forge

Basic Info

| Property | Value |
|———-|——-|
| Mod ID | craftboost |
| Version | 1.0.0 |
| Author | mccmcaozr |
| License | All Rights Reserved (closed source) |
| Environment | Server (client optional) |
| Minecraft | >=1.21 (1.21 ~ 1.21.11, 26.1 ~ 26.2) |
| Java | 21+ |

Loader Support

| Loader | Minimum Version | JAR Filename |
|——–|—————–|————–|
| Fabric | Loader 0.15.0 + Fabric API | craftboost-fabric-1.0.0.jar |
| NeoForge | 21.1.236 | craftboost-neoforge-1.0.0.jar |
| Forge | 52.1.15 | craftboost-forge-1.0.0.jar |

Compatibility

  • Recommended: Sodium, Lithium
  • Optional: REI, JEI, EMI

Overview

CraftBoost adds a result caching layer to RecipeManager.getFirstMatch (Mojang: getRecipeFor), reducing redundant recipe scanning.

Core Features

  • Only caches CraftingRecipeInput / CraftingInput (crafting table / crafter)
  • Supports negative caching (Optional.empty())
  • TTL 5 seconds + capacity 256
  • Cleared on datapack reload
  • Server-side cache only, preventing client/server crosstalk in integrated environments
  • Cache key includes RecipeManager identity
  • Component fingerprint uses full content string, avoiding 32-bit collision wrong recipes
  • Crafter cooldown interception removed (avoiding swallowing valid crafts)

Cross-Loader Mapping Differences

| Fabric (Yarn) | NeoForge/Forge (Mojang) |
|—————|————————|
| RecipeManager.getFirstMatch | RecipeManager.getRecipeFor |
| RecipeEntry | RecipeHolder |
| CraftingRecipeInput | CraftingInput |
| Registries | BuiltInRegistries |
| Identifier | ResourceLocation |

Installation

  1. Install the corresponding loader (Fabric / NeoForge / Forge)
  2. For Fabric, also install Fabric API
  3. Place the JAR file for your loader into the mods folder (server recommended)

常见问题

CraftBoost 支持哪些 Minecraft 版本?

CraftBoost 支持 Minecraft Java 版 1.21–26.2,共 16 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

CraftBoost 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。

评论

登录后评论和评分

mccmcaozr 的其他作品

查看全部 →