Skip to content
Tennantite
中文
Documentation

IeItemBatcherScreen

物品分批器:9 幽灵过滤槽 + 9 缓冲槽 + 红石染色按钮行 + ALL/SINGLE 模式切换按钮,176×199

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 { IeItemBatcherScreen } from "./index";

/**
 * IeItemBatcherScreen 预览用例:过滤 3 项、缓冲 2 项、ALL 模式。
 */
export function IeItemBatcherScreenDemo() {
  return (
    <IeItemBatcherScreen
      buffers={Array.from({ length: 9 }, (_, i) => i < 2 ? { count: 32, icon: "iron-ingot", tooltip: "缓冲物品" } : null)}
      colors={[true, false, true, false, false, false, false, false, false]}
      filters={Array.from({ length: 9 }, (_, i) => i < 3 ? { icon: "iron-ore", tooltip: "过滤物品" } : null)}
      onColorClick={() => {}}
      onModeToggle={() => {}}
      onSlotClick={() => {}}
      outputAll
    />
  );
}