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

锯木机界面

Thermal 锯木机界面(MachineSawmillScreen 176×166):输入槽、4×18 产物槽、进度箭头 (72,35)、scale_saw 速度元素 (44,44)。

全屏预览预览页不进入搜索引擎索引
锯木机玩家

组成

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

代码

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

/**
 * ThermalSawmillScreen 预览用例:橡木原木 → 6 橡木木板 + 锯末(sawmill)。
 */
export function ThermalSawmillScreenDemo() {
  return (
    <ThermalSawmillScreen
      energy={{ amount: 240000, capacity: 400000 }}
      input={{ count: 1, icon: "oak-log", tooltip: "橡木原木" }}
      onSlotClick={() => {}}
      output={{ count: 6, icon: "oak-planks", tooltip: "橡木木板 ×6" }}
      outputs={[{ count: 1, icon: "charcoal", tooltip: "锯末" }]}
      playerHotbar={THERMAL_DEMO_PLAYER_HOTBAR}
      playerItems={THERMAL_DEMO_PLAYER_MAIN}
      progress={0.4}
      speed={0.6}
    />
  );
}