跳到主要内容
Tennantite
EN
文档目录

空间 IO 端口界面

空间 IO 端口:spatialio.png 176×197,输入/输出元件槽 + 五行电力/效率/区域状态文字。

全屏预览预览页不进入搜索引擎索引
空间 IO 端口
物品栏

组成

这些是可直接组合的组件;Block 只是把它们按原版坐标放在一起。

代码

import { Ae2SpatialIoPortScreen } from "./index";

/**
 * Ae2SpatialIoPortScreen 预览用例:3×4×3 有效区域,效率 92%。
 */
export function Ae2SpatialIoPortScreenDemo() {
  return (
    <Ae2SpatialIoPortScreen
      efficiency="92%"
      hotbarItems={Array.from({ length: 9 }, (_, index) => ({ icon: index % 2 ? "charcoal" : "iron-ingot" }))}
      input={{ icon: "emerald", tooltip: "空间存储元件" }}
      mainItems={Array.from({ length: 12 }, (_, index) => ({ icon: index % 2 ? "gold-ingot" : "iron-ingot" }))}
      maxPower="10 kAE"
      output={{ icon: "diamond", tooltip: "已存储元件" }}
      regionSize="3x4x3"
      requiredPower="8.5 kAE"
      storedPower="6 kAE"
    />
  );
}