Documentation
EioFarmStationScreen
Ender IO 农业站(184×169):工具 / 区域 / 骨粉 / 6 输出槽、9×45 能量条与范围显示。
import { EIO_DEMO_GOLD_INGOT, EIO_DEMO_IRON_ORE } from "../eio-demo-data";
import { EioFarmStationScreen } from "./index";
/**
* FarmStation 预览。
*/
export function EioFarmStationScreenDemo() {
return (
<EioFarmStationScreen
energy={{ max: 100000, value: 48000 }}
items={{
"farm-station-output-0": EIO_DEMO_GOLD_INGOT,
"farm-station-tool-0": 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-farm-station-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.