Skip to content
Tennantite
中文
Documentation

EioCrafterScreen

Ender IO 制造机(220×166):3×3 幽影配方 + 预览、3×3 输入 + 输出、9×42 能量条与右侧控件。

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 { EIO_DEMO_GOLD_INGOT, EIO_DEMO_IRON_ORE } from "../eio-demo-data";
import { EioCrafterScreen } from "./index";

/**
 * Crafter 预览。
 */
export function EioCrafterScreenDemo() {
  return (
    <EioCrafterScreen
      energy={{ max: 100000, value: 48000 }}
      items={{
        "crafter-ghost-0": EIO_DEMO_IRON_ORE,
        "crafter-input-0": EIO_DEMO_IRON_ORE,
        "crafter-output": EIO_DEMO_GOLD_INGOT,
      }}
      onIoConfig={() => {}}
      onRedstoneChange={() => {}}
      onSlotClick={() => {}}
      state="active"
    />
  );
}