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

红石炉界面

Thermal 红石炉界面(1.20.x 原版贴图):输入 / 燃料槽、进度箭头、火焰、竖向能量表、26×26 输出槽与右侧 3×3 强化面板。

全屏预览预览页不进入搜索引擎索引
红石炉玩家
强化

组成

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

代码

import {
  THERMAL_DEMO_PLAYER_HOTBAR,
  THERMAL_DEMO_PLAYER_MAIN,
} from "../thermal-demo-data";
import { ThermalRedstoneFurnaceScreen } from "./index";

interface ThermalRedstoneFurnaceScreenDemoProps {
  energy?: { amount: number; capacity: number };
  progress?: number;
  speed?: number;
}

/**
 * 空载状态(强化面板关闭、无输入输出)。
 */
export function ThermalRedstoneFurnaceIdleDemo() {
  return (
    <ThermalRedstoneFurnaceScreen
      energy={{ amount: 80000, capacity: 400000 }}
      input={{ count: 1, icon: "iron-ore", tooltip: "铁矿石" }}
      onAugmentsToggle={() => {}}
      playerHotbar={THERMAL_DEMO_PLAYER_HOTBAR}
      playerItems={THERMAL_DEMO_PLAYER_MAIN}
    />
  );
}

/**
 * ThermalRedstoneFurnaceScreen 预览用例:打开强化面板,铁矿石 → 铁锭,进度 0.5。
 */
export function ThermalRedstoneFurnaceScreenDemo({
  energy = { amount: 240000, capacity: 400000 },
  progress = 0.5,
  speed = 0.75,
}: ThermalRedstoneFurnaceScreenDemoProps = {}) {
  return (
    <ThermalRedstoneFurnaceScreen
      augments={[
        { icon: "gunpowder", tooltip: "强化:处理速度" },
        { icon: "blaze-powder", tooltip: "强化:能量效率" },
        null,
        { icon: "lapis-lazuli", tooltip: "强化:次要输出" },
      ]}
      augmentsOpen
      energy={energy}
      input={{ count: 1, icon: "iron-ore", tooltip: "铁矿石" }}
      onAugmentsToggle={() => {}}
      onSlotClick={() => {}}
      output={{ count: 1, icon: "iron-ingot", tooltip: "铁锭" }}
      playerHotbar={THERMAL_DEMO_PLAYER_HOTBAR}
      playerItems={THERMAL_DEMO_PLAYER_MAIN}
      progress={progress}
      speed={speed}
    />
  );
}