Documentation
EioCrafterScreen
Ender IO 制造机(220×166):3×3 幽影配方 + 预览、3×3 输入 + 输出、9×42 能量条与右侧控件。
import { EIO_DEMO_GOLD_INGOT, EIO_DEMO_IRON_ORE } from "../eio-demo-data";
import { EioCrafterScreen } from "./index";
/**
* Crafter 预览。
*/
export function EioCrafterScreenDemo() {
return (
<EioCrafterScreen
energy={{ max: 100000, value: 48000 }}
items={{
"crafter-ghost-0": EIO_DEMO_IRON_ORE,
"crafter-input-0": EIO_DEMO_IRON_ORE,
"crafter-output": EIO_DEMO_GOLD_INGOT,
}}
onIoConfig={() => {}}
onRedstoneChange={() => {}}
onSlotClick={() => {}}
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-crafter-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.