Documentation
ThermalPyrolyzerScreen
Thermal 热解炉界面(MachinePyrolyzerScreen 176×166):输入槽、4×18 产物槽、medium 产物流体罐 (151,22)、流体进度箭头 (71,35)、scale_flame 速度元素。
热解炉玩家
import {
THERMAL_DEMO_PLAYER_HOTBAR,
THERMAL_DEMO_PLAYER_MAIN,
} from "../thermal-demo-data";
import { ThermalPyrolyzerScreen } from "./index";
/**
* ThermalPyrolyzerScreen 预览用例:煤炭 → 焦炭 + 250mB 杂酚油(热解炉)。
*/
export function ThermalPyrolyzerScreenDemo() {
return (
<ThermalPyrolyzerScreen
energy={{ amount: 240000, capacity: 400000 }}
fluid={{ amount: 250, capacity: 4000, tint: "#6e5530" }}
input={{ count: 1, icon: "coal", tooltip: "煤炭" }}
onSlotClick={() => {}}
output={{ count: 1, icon: "charcoal", tooltip: "焦炭" }}
outputs={[null, null]}
playerHotbar={THERMAL_DEMO_PLAYER_HOTBAR}
playerItems={THERMAL_DEMO_PLAYER_MAIN}
progress={0.5}
speed={0.7}
/>
);
}
Install
$pnpm add @tennantite/thermalnpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/thermal/src/thermal-pyrolyzer-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.