Files
meatballcraft/scripts/mixin/AedialClientVSServer/SigilTableJEITransferClient.txt
T
Alexander 67ba30e49b 0.18.5-hotfix2 (reconstructed from live server state)
Rebuilt from /root/server/Meatballcraft-Server-prerelease-0.18.5-hotfix2
(pct 1234) since the hotfix2 release was never committed upstream —
upstream history jumps from 89cbf41 (0.18.5) to 9bbd4be (partial lore,
0.18.6 dev).

Synced config/, scripts/, pillar/, AlternativeConfigs/ to match the
server byte-for-byte (92 files: 53 changed, 36 added, 3 client-only
mixin scripts disabled via .zs -> .txt rename). Includes ~26
runtime-generated files (activity.json, tconstruct_oredictcache.dat,
forge.cfg, ...) kept for exact parity with the server.

Not synced: mods/ (untracked; hotfix2 bumped ~15 jars, see
modlist_files.txt drift), resources/ (client-only, absent on server),
manifest.json (client pack file, absent on server).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-04 20:31:34 +02:00

33 lines
1.4 KiB
Plaintext

#modloaded bewitchment
#loader mixin
#sideonly client
import native.mezz.jei.api.IModRegistry;
import native.mezz.jei.api.recipe.transfer.IRecipeTransferRegistry;
import native.com.bewitchment.client.gui.GuiSigilTable;
import native.com.bewitchment.common.block.tile.container.ContainerSigilTable;
import native.com.bewitchment.client.integration.jei.category.SigilCategory;
import mixin.CallbackInfo;
#mixin Mixin
#{targets: "com.bewitchment.client.integration.jei.BewitchmentJEI"}
zenClass MixinBewitchmentJEITransferSigilTable {
#mixin Inject
#{
# method: "register",
# at: {value: "TAIL"}
#}
function registerSigilTableTransferHandler(registry as IModRegistry, ci as CallbackInfo) as void {
// JEI transfer (+ button) and click area for Sigil Table
var transfer as IRecipeTransferRegistry = registry.getRecipeTransferRegistry();
// ContainerSigilTable slot layout:
// 0..24 = 5x5 matrix (recipe inputs)
// 25..51 = player inventory, 52..60 = hotbar (total 36)
// 61 = output slot (ignored by transfer)
transfer.addRecipeTransferHandler(ContainerSigilTable.class, SigilCategory.UID, 0, 25, 25, 36);
// 134,45,18,18 is the output slot area in the GUI; place a narrow arrow-only region to the left (120..128).
registry.addRecipeClickArea(GuiSigilTable.class, 120, 45, 8, 18, SigilCategory.UID);
}
}