Documentation
EioVacuumChestScreen
Ender IO 真空箱(176×206):过滤槽 + 27 格收纳、范围控件与红石控制。
真空箱物品栏
import { EIO_DEMO_GOLD_INGOT, EIO_DEMO_IRON_ORE } from "../eio-demo-data";
import { EioVacuumChestScreen } from "./index";
/**
* VacuumChest 预览。
*/
export function EioVacuumChestScreenDemo() {
return (
<EioVacuumChestScreen
items={{
"vacuum-chest-filter": EIO_DEMO_IRON_ORE,
"vacuum-chest-main-0": EIO_DEMO_GOLD_INGOT,
}}
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-vacuum-chest-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.