Documentation
IeAlloySmelterScreen
合金炉:双输入 + 燃料 + 输出槽,火焰与箭头进度(箭头 x=84),176×166
合金炉物品栏
import { IeAlloySmelterScreen } from "./index";
/**
* IeAlloySmelterScreen 预览用例:铜 + 镍 → 2 康铜锭,进度 58%。
*/
export function IeAlloySmelterScreenDemo() {
return (
<IeAlloySmelterScreen
burn={0.5}
fuel={{ count: 1, icon: "charcoal", tooltip: "煤炭" }}
inputs={[{ count: 1, icon: "copper-ingot", tooltip: "铜锭" }, { count: 1, icon: "iron-ingot", tooltip: "镍锭" }]}
onSlotClick={() => {}}
output={{ count: 2, icon: "iron-ingot", tooltip: "康铜锭 ×2" }}
process={0.58}
/>
);
}
Install
$pnpm add @tennantite/ienpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/ie/src/ie-alloy-smelter-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.