Skip to content
Tennantite
中文
Documentation

IeMetalPressScreen

IE metal press (rebuilt from the JEI category layout): input slot, three selectable mold slots, horizontal belt progress and an output slot.

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 { IE_DEMO_IRON_INGOT, IE_DEMO_MOLD } from "../ie-demo-data";
import { IeMetalPressScreen } from "./index";

interface IeMetalPressScreenDemoProps {
  progress?: number;
}

/**
 * IeMetalPressScreen 预览用例:铁锭 → 铁板,选中板材模具,进度 0.5。
 */
export function IeMetalPressScreenDemo({ progress = 0.5 }: IeMetalPressScreenDemoProps = {}) {
  return (
    <IeMetalPressScreen
      activeMold={1}
      input={IE_DEMO_IRON_INGOT}
      molds={[IE_DEMO_MOLD, IE_DEMO_MOLD, IE_DEMO_MOLD]}
      onMoldSelect={() => {}}
      onSlotClick={() => {}}
      output={{ count: 1, icon: "iron-ingot", tooltip: "铁板" }}
      progress={progress}
    />
  );
}