Documentation
EioAlloySmelterScreen
Ender IO alloy smelter (176×208): three mode backgrounds, 3 inputs + output, two flame progress bars, 18×52 energy bar and state / mode / redstone / IO buttons.
合金炉物品栏
import { EIO_DEMO_GOLD_INGOT, EIO_DEMO_IRON_INGOT, EIO_DEMO_IRON_ORE } from "../eio-demo-data";
import { EioAlloySmelterScreen } from "./index";
/**
* 合金炉预览:全部模式、铁矿石 + 铁锭 + 铁矿石 → 金锭,进度 50%,能量 65%。
*/
export function EioAlloySmelterScreenDemo() {
return (
<EioAlloySmelterScreen
energy={{ max: 100000, value: 65000 }}
inputs={[EIO_DEMO_IRON_ORE, EIO_DEMO_IRON_INGOT, EIO_DEMO_IRON_ORE]}
onModeChange={() => {}}
onRedstoneChange={() => {}}
onSlotClick={() => {}}
output={EIO_DEMO_GOLD_INGOT}
progress={0.5}
state="active"
/>
);
}
Install
$pnpm add @tennantite/enderionpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/enderio/src/eio-alloy-smelter-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.