Documentation
IeArcFurnaceScreen
IE arc furnace (1.21.1 original textures): 12 inputs, 4 additives, 6 outputs, slag, 3 electrodes, distribute button, vertical progress group and energy bar.
弧光炉物品栏
import { IE_DEMO_GRAPHITE, IE_DEMO_SLAG } from "../ie-demo-data";
import { IeArcFurnaceScreen } from "./index";
/**
* IeArcFurnaceScreen 预览用例:铁矿石 → 2 铁锭 + 矿渣;12 输入 + 1 添加剂 + 3 输出 + 3 电极。
*/
export function IeArcFurnaceScreenDemo() {
const ore = { count: 1, icon: "iron-ore" as const, tooltip: "铁矿石" };
return (
<IeArcFurnaceScreen
additives={[null]}
electrodes={[IE_DEMO_GRAPHITE, IE_DEMO_GRAPHITE, IE_DEMO_GRAPHITE]}
energy={{ max: 100000, value: 62000 }}
inputs={[ore, ...Array.from({ length: 11 }, () => null)]}
onDistribute={() => {}}
onSlotClick={() => {}}
outputs={[{ count: 2, icon: "iron-ingot", tooltip: "铁锭 ×2" }, null, null]}
progresses={[0.9, 0, 0]}
slagOutput={IE_DEMO_SLAG}
/>
);
}
Install
$pnpm add @tennantite/ienpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/ie/src/ie-arc-furnace-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.