Documentation
EioTankScreen
Ender IO 流体坦克(176×166,与抽液器 / 泼洒器共用 tank 布局):充 / 排四个流体槽位与 16×47 中央流体表。
import { EIO_DEMO_GOLD_INGOT, EIO_DEMO_IRON_ORE } from "../eio-demo-data";
import { EioTankScreen } from "./index";
/**
* Tank 预览。
*/
export function EioTankScreenDemo() {
return (
<EioTankScreen
items={{
"tank-drain-output": EIO_DEMO_GOLD_INGOT,
"tank-fill-input": EIO_DEMO_IRON_ORE,
}}
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-tank-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.