Documentation
EioPaintingMachineScreen
Ender IO 涂色机(176×166):油漆 / 输入 / 输出槽、24×16 横向进度、9×42 能量条与右侧控件。
import { EIO_DEMO_GOLD_INGOT, EIO_DEMO_IRON_INGOT, EIO_DEMO_IRON_ORE } from "../eio-demo-data";
import { EioPaintingMachineScreen } from "./index";
/**
* PaintingMachine 预览。
*/
export function EioPaintingMachineScreenDemo() {
return (
<EioPaintingMachineScreen
energy={{ max: 100000, value: 48000 }}
items={{
"painting-machine-input": EIO_DEMO_IRON_ORE,
"painting-machine-output": EIO_DEMO_GOLD_INGOT,
"painting-machine-paint": EIO_DEMO_IRON_INGOT,
}}
onIoConfig={() => {}}
onRedstoneChange={() => {}}
onSlotClick={() => {}}
progress={0.45}
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-painting-machine-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.