Documentation
Ae2ChestScreen
176×168 ME chest: single storage cell slot, priority tab and player inventory.
ME 箱子物品栏
import { Ae2ChestScreen } from "./index";
/**
* Ae2ChestScreen 预览用例:单个存储元件槽。
*/
export function Ae2ChestScreenDemo() {
return (
<Ae2ChestScreen
mainItems={[
{ count: 64, icon: "stone-block", tooltip: "石头" },
{ count: 32, icon: "iron-ingot", tooltip: "铁锭" },
]}
storage={{ icon: "diamond", tooltip: "存储元件" }}
/>
);
}
Install
$pnpm add @tennantite/ae2npm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/ae2/src/ae2-chest-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.