Documentation
EioStirlingGeneratorScreen
Ender IO Stirling generator (176×166): fuel slot, 14×14 burn progress, 9×42 energy bar, generating / efficiency text and the right-side controls.
产能 20.00 µI/t效率 100%
import { EIO_DEMO_CHARCOAL } from "../eio-demo-data";
import { EioStirlingGeneratorScreen } from "./index";
/**
* 斯特林发电机预览:煤炭燃烧 60%,能量 32%,产能 20 µI/t,效率 100%。
*/
export function EioStirlingGeneratorScreenDemo() {
return (
<EioStirlingGeneratorScreen
burn={0.6}
capacitorInstalled
efficiency={100}
energy={{ max: 100000, value: 32000 }}
fuel={EIO_DEMO_CHARCOAL}
generating={20}
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-stirling-generator-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.