Skip to content
Tennantite
中文
Documentation

IeAutoWorkbenchScreen

自动工作台:4×4 材料存储槽 + 图纸槽 + 配方选择按钮组(y 依数量 68/59/…)+ 能量条,176×184

Full-screen previewPreview pages are excluded from search indexes
自动工作台物品栏

Composition

These are the composable components; the Block only places them at vanilla coordinates.

Code

import { IeAutoWorkbenchScreen } from "./index";

/**
 * IeAutoWorkbenchScreen 预览用例:工程师蓝图(铁机械零件),材料齐备,能量 50%。
 */
export function IeAutoWorkbenchScreenDemo() {
  return (
    <IeAutoWorkbenchScreen
      blueprint={{ icon: "wheat", tooltip: "工程师蓝图(铁机械零件)" }}
      energy={{ max: 32000, value: 16000 }}
      onRecipeSelect={() => {}}
      onSlotClick={() => {}}
      recipes={[
        { icon: "iron-ingot", selected: true, tooltip: "铁机械零件" },
      ]}
      storage={[
        { count: 2, icon: "iron-ingot", tooltip: "铁板" },
        { count: 1, icon: "copper-ingot", tooltip: "铜锭" },
        ...Array.from({ length: 14 }, () => null),
      ]}
    />
  );
}