Documentation
ThermalPulverizerScreen
Thermal 粉碎机界面(MachinePulverizerScreen 176×166):双输入槽 (43,16)/(43,52)、4×18 产物槽、进度箭头 (72,35)、scale_crush 速度元素 (44,35)、左侧能量表与右侧强化面板。
粉碎机玩家
import {
THERMAL_DEMO_PLAYER_HOTBAR,
THERMAL_DEMO_PLAYER_MAIN,
} from "../thermal-demo-data";
import { ThermalPulverizerScreen } from "./index";
/**
* ThermalPulverizerScreen 预览用例:铁矿石 → 2 铁粉(粉碎机 pulverizer)。
*/
export function ThermalPulverizerScreenDemo() {
return (
<ThermalPulverizerScreen
energy={{ amount: 240000, capacity: 400000 }}
input={{ count: 1, icon: "iron-ore", tooltip: "铁矿石" }}
inputs={[null]}
onSlotClick={() => {}}
output={{ count: 2, icon: "iron-ingot", tooltip: "铁粉 ×2" }}
outputs={[null, null, null]}
playerHotbar={THERMAL_DEMO_PLAYER_HOTBAR}
playerItems={THERMAL_DEMO_PLAYER_MAIN}
progress={0.5}
speed={0.75}
/>
);
}
Install
$pnpm add @tennantite/thermalnpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/thermal/src/thermal-pulverizer-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.