跳到正文

Thaumonomicon To JEI

作者:Madgique

A JEI button on Thaumonomicon recipe pages — one click opens JEI on the output of the recipe you're viewing.

收藏

截图

介绍

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

Thaumonomicon To JEI

A Forge mod for Minecraft 1.12.2 that adds a JEI button on the recipe pages of the Thaumonomicon (Thaumcraft 6): one click and JEI opens showing the currently displayed recipe’s output.

Downloads

GitHub Release

Features

  • A small JEI button appears at the bottom-right of any recipe page in the Thaumonomicon
  • Clicking it opens JEI on the output of the recipe being viewed
  • Works for all recipe types displayed by the Thaumonomicon:
    • Arcane workbench (thaumaturgy) recipes
    • Crucible recipes
    • Infusion recipes (when the output is a concrete item)
    • Vanilla crafting recipes
  • Hovering the button shows the recipe output’s name
  • Client-side only

Requirements

  • Forge 14.23.5.2860 (Minecraft 1.12.2)
  • JEI 4.16.x
  • Thaumcraft 6.1.BETA26 (and its dependency Baubles)

How It Works

  • Unlike the FML KeyInputEvent (which never fires while a GuiScreen is open), this mod hooks Forge’s GuiScreenEvent.DrawScreenEvent.Post to draw the button and GuiScreenEvent.MouseInputEvent.Pre to detect the click while the Thaumonomicon is open.
  • The currently shown recipe is read from GuiResearchPage.shownRecipe (via a small, contained reflection call), then resolved through the same chain Thaumcraft uses internally:
    CommonInternals.getCatalogRecipe → getCatalogRecipeFake → CraftingManager.getRecipe → ConfigRecipes.recipeGroups.
  • Resolving the output follows Thaumcraft’s own addRecipesToList logic (BluePrint, CrucibleRecipe, InfusionRecipe, IRecipe).
  • JEI is opened through the mod’s own @JEIPlugin (onRuntimeAvailable caches the IJeiRuntime), using createFocus(IFocus.Mode.OUTPUT, stack) + getRecipesGui().show(focus).

Known Limitations

  • Infusion recipes whose output is not a concrete item (e.g. enchantment-based recipes) show no button — they cannot be represented as a single JEI ingredient.
  • Multiblock plans (BluePrint) with no display block show no button.
  • When a research key groups several sub-recipes, the first resolvable output is used.

Building from Source

./gradlew build

The compiled jar is produced in build/libs/ as thaumonomicon_to_jei-1.12.2-<version>-forge.jar.

Requires Java 8 to compile/run the game (Gradle daemon runs under JDK 17).

License

This project is licensed under the LGPLv3.

常见问题

Thaumonomicon To JEI 支持哪些 Minecraft 版本?

Thaumonomicon To JEI 支持 Minecraft Java 版 1.12.2,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

Thaumonomicon To JEI 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

Madgique 的其他作品

查看全部 →