Documentation
EioSoulEngineScreen
Ender IO 灵魂发动机(176×166):灵魂流体槽、9×42 能量条与右侧控件。
import { EIO_DEMO_CHARCOAL } from "../eio-demo-data";
import { EioSoulEngineScreen } from "./index";
/**
* SoulEngine 预览。
*/
export function EioSoulEngineScreenDemo() {
return (
<EioSoulEngineScreen
energy={{ max: 100000, value: 48000 }}
items={{
"soul-engine-capacitor": EIO_DEMO_CHARCOAL,
}}
onIoConfig={() => {}}
onRedstoneChange={() => {}}
onSlotClick={() => {}}
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-soul-engine-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.