Documentation
BatBoxScreen
IC2 BatBox from the original 1.12.2 GUI: four armor slots, charge / discharge slots, red EU bar, vanilla redstone button and status text.
储电箱
能量: 26000/40000输出: 32 EU/t装备
import { BatBoxScreen } from "./index";
/**
* BatBoxScreen 预览用例:充电槽放置 RE 电池(原版图标近似)
*/
export function BatBoxScreenDemo() {
return (
<BatBoxScreen
charge={{ icon: "lapis-lazuli", tooltip: "RE 电池" }}
energy={{ max: 40000, value: 26000 }}
title="储电箱"
/>
);
}
Install
$pnpm add @tennantite/ic2npm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/ic2/src/batbox-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.