Documentation
EioDrainScreen
Ender IO 抽液器(176×166,与流体坦克同 hash 共用布局):电容槽、能量条、16×47 流体表与范围控件。
import { EIO_DEMO_CHARCOAL } from "../eio-demo-data";
import { EioDrainScreen } from "./index";
/**
* Drain 预览。
*/
export function EioDrainScreenDemo() {
return (
<EioDrainScreen
energy={{ max: 100000, value: 48000 }}
items={{
"tank-capacitor": EIO_DEMO_CHARCOAL,
}}
onIoConfig={() => {}}
onRangeToggle={() => {}}
onRedstoneChange={() => {}}
onSlotClick={() => {}}
rangeVisible={true}
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-drain-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.