Documentation
EioNiardScreen
Ender IO 泼洒器(176×166,与流体坦克同 hash 共用布局,另用 39×56 流体区):电容槽、充 / 排槽位与范围控件。
import { EIO_DEMO_CHARCOAL, EIO_DEMO_IRON_ORE } from "../eio-demo-data";
import { EioNiardScreen } from "./index";
/**
* Niard 预览。
*/
export function EioNiardScreenDemo() {
return (
<EioNiardScreen
energy={{ max: 100000, value: 48000 }}
items={{
"tank-capacitor": EIO_DEMO_CHARCOAL,
"tank-fill-input": EIO_DEMO_IRON_ORE,
}}
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-niard-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.