Documentation
ThermalSmelterScreen
Thermal 感应冶炼炉界面(MachineSmelterScreen 176×166):3 输入 + 1 催化槽、4×18 产物槽、进度箭头 (94,35)、scale_flame 速度元素 (52,35)。
感应冶炼炉玩家
import {
THERMAL_DEMO_PLAYER_HOTBAR,
THERMAL_DEMO_PLAYER_MAIN,
} from "../thermal-demo-data";
import { ThermalSmelterScreen } from "./index";
/**
* ThermalSmelterScreen 预览用例:铁矿石 → 1 铁锭(感应冶炼炉 smelter)。
*/
export function ThermalSmelterScreenDemo() {
return (
<ThermalSmelterScreen
energy={{ amount: 240000, capacity: 400000 }}
input={{ count: 1, icon: "iron-ore", tooltip: "铁矿石" }}
inputs={[null, null, null]}
onSlotClick={() => {}}
output={{ count: 1, icon: "iron-ingot", tooltip: "铁锭" }}
outputs={[null, null, null]}
playerHotbar={THERMAL_DEMO_PLAYER_HOTBAR}
playerItems={THERMAL_DEMO_PLAYER_MAIN}
progress={0.65}
speed={0.8}
/>
);
}
Install
$pnpm add @tennantite/thermalnpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/thermal/src/thermal-smelter-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.