Documentation
EioWiredChargerScreen
Ender IO 有线充电器(197×166):充电 / 充毕槽、盔甲与副手槽、12×36 竖向进度与 9×42 能量条。
import { EIO_DEMO_GOLD_INGOT, EIO_DEMO_IRON_ORE } from "../eio-demo-data";
import { EioWiredChargerScreen } from "./index";
/**
* WiredCharger 预览。
*/
export function EioWiredChargerScreenDemo() {
return (
<EioWiredChargerScreen
energy={{ max: 100000, value: 48000 }}
items={{
"wired-charger-item-charged": EIO_DEMO_GOLD_INGOT,
"wired-charger-item-to-charge": EIO_DEMO_IRON_ORE,
}}
onIoConfig={() => {}}
onRedstoneChange={() => {}}
onSlotClick={() => {}}
progress={0.45}
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-wired-charger-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.