promotional bannermobile promotional banner
premium banner
batch edit and save and upload AE2 pattern content with local files

Description

本模组为 JEI 和 AE2 的附属模组,是一个纯客户端模组。功能如下:

 This mod is JEI's and AE2's Addon, Is a client mod, functions are as follows:

 

使用 /editae2patterncontent 可以打开 JEI 批量编写界面(从左到右依次是:样板内容缓存、更高显示密度的 JEI、本地样板预览)。

The JEI batch writing screen can be opened by using command "/editae2patterncntent" (from left to right: pattern content cache, higher display density JEI, local template preview).

 

在这个界面中,左键点击 JEI 中的配方可以将其添加至样板内容缓存,点击 JEI 配方类型(例如“工作台合成”)可以把此配方类型的所有配方添加至样板内容缓存,右侧可以预览本地的样板文件的内容(右下角可以新建样板文件,右上角可以打开样板文件所在文件夹,也可以靠鼠标滚轮滑动选择文件),左键点击样板内容缓存中的配方可以将此配方写入本地文件并删除此缓存,中间点击写入本地文件但不删除,右键点击删除,左下角有批量处理的按钮,右上角显示样板内容预览,右下角显示虚拟样板槽位(像把样板放在样板供应器/样板管理终端中一样,显示样板的主产物),左键点击虚拟样板槽位可以选中此样板,右上角将显示此样板的内容预览,右键点击删除此样板,中间点击虚拟样板槽位或用任意按键点击右上角样板内容预览区域则进入本地样板编辑界面。

In this screen, left clicking on the recipe in JEI can add it to the pattern content cache. Click on JEI Formula type (such as "Workbench Synthesis") can add all formulas of this formula type to the pattern content cache. On the right side, you can preview the content of the local pattern content file (you can create a new pattern content file in the lower right corner, open the folder where the pattern content file is located in the upper right corner, or select the file by sliding the mouse wheel). Left clicking on the formula in the pattern content cache can write this formula to the local file and delete this cache. In the middle, click on "Write to Local File" but do not delete it. Right click on "Delete". There is a batch processing button in the lower left corner. The pattern content preview is displayed in the upper right corner, and the virtual pattern slot is displayed in the lower right corner (like placing a pattern in a pattern provider/pattern encoding terminal, displaying the main product of the pattern content). Left click on the virtual pattern. The template slot can be selected for this template, The content preview of this template will be displayed in the upper right corner. Right click to delete this pattern, click on the virtual template slot in the middle, or use any key to click on the pattern content preview area in the upper right corner to enter the local pattern editing screen.

 

右键点击可以选择支持不同原材料的配方的原材料(例如配方中要求木门,可以在其支持列表中选择),选择好后此配方添加至样板内容缓存;

Right click to select raw materials that support different formulas (for example, if a wooden door is required in the formula, it can be selected from its support list). Once selected, this formula will be added to the pattern content cache;

 

中键点击可以直接进入样板内容编辑界面。

Middle click to directly enter the pattern content editing screen.

 

保存后进入 JEI 批量编写界面的左侧样板内容缓存。

After saving, enter the pattern content cache on the left side of the JEI batch writing screen.

 

在本地样板编辑界面中,左侧是样板 NBT 内容预览区域,右侧是重新实现的 JEI 物品列表(显示区域更大),中间是样板内容预览/编辑区域,对样板的操作和样板编码终端中的操作逻辑相同,可以点击左下角按钮直接编辑样板 NBT,编辑好后可以保存到本地。

In the local template editing interface, the left side is the pattern NBT content preview area, the right side is the re implemented JEI item list (with a larger display area), and the middle is the pattern content preview/editing area. The operation logic for templates is the same as that in the pattern coding terminal. You can click the button in the bottom left corner to directly edit the pattern NBT, and after editing, you can save it locally.

 

在样板供应器及其子类的 Screen中,通过 Mixin 添加了“保存样板内容”的按钮,点击后可以直接把样板供应器中所有的样板内容保存至 JEI 批量编写界面的样板内容缓存。

In the Screen of the pattern provider and its subclasses, a "Save Pattern Content" button has been added through Mixin. Clicking it can directly save all pattern content in the template provider to the pattern content cache in the JEI batch writing screen.

 

考虑到AE2附属模组中也会有样板供应器,本模组在 PatternProviderScreen 及其子类中都会添加这个按钮,但是 AE2 附属模组的样板供应器的 Screen 未必继承 PatternProviderScreen,导致有些模组的样板供应器界面不会显示这个按钮。

Considering that there will also be a pattern provider in the AE2 Addon mods, this module will add this button in the Patterns Provider Screen and its subclasses. However, the Screen of the pattern provider in the AE2 Addon mods may not inherit the Patterns Provider Screen, resulting in some mod's pattern provider screen not displaying this button.

 

为了解决这个问题,可以使用 /savepatternproviderpatterncontent 直接读取面前选中的 blockentity 的 NBT,解析其中所包含的样板数据,并写入 JEI 批量编写界面左侧的样板内容缓存(无论是不是样板供应器,就算是个放了样板的箱子也能正确读取样板内容并写入缓存)。

To solve this problem, you can use/saveprogramsupplypepatterned content to directly read the NBT of the selected blockentity in front of you, parse the template data contained in it, and write it to the pattern content cache on the left side of the JEI batch writing interface (whether it is a pattern provider or not, even a box containing pattern can correctly read the pattern content and write it to the cache).

 

在样板编码终端中,通过 Mixin 添加了“批量上传样板”的按钮,点击后进入文件样板内容预览界面,左上角可打开样板文件所在文件夹和通过鼠标滚轮选择文件,虚拟槽位中显示本地样板的主产物,点击“确认”开始模拟玩家行为编码样板,将使用空白样板编写选择的文件中的所有样板。其中,编写每个非切石机样板需要 4tick,编写切石机样板需要 5tick。

In the pattern encoding terminal, a "batch upload pattern" button has been added through Mixin. Clicking on it will enter the file pattern content preview screen. In the upper left corner, you can open the folder where the pattern file is located and select the file through the mouse wheel. The main products of the local pattern will be displayed in the virtual slot. Click "confirm" to start simulating player behavior encoding patterns, and all patterns in the selected file will be written using blank pattern. Among them, writing each non stone cutting pattern requires 4 ticks, and writing a stone cutting pattern requires 5 ticks.

 

这些样板数据是保存在本地的,可用于 AE2 样板内容跨存档/跨设备。

These pattern data are saved locally and can be used for AE2 pattern content across saves/devices.