Documentation
ThermalChillerScreen
Thermal 冷冻机界面(MachineChillerScreen 176×166):输入槽、26×26 产物槽 (120,30)、medium 流体罐 (34,22)、流体进度箭头 (87,35)、scale_snowflake 速度元素。
冷冻机玩家
import {
THERMAL_DEMO_PLAYER_HOTBAR,
THERMAL_DEMO_PLAYER_MAIN,
} from "../thermal-demo-data";
import { ThermalChillerScreen } from "./index";
/**
* ThermalChillerScreen 预览用例:1000mB 水 → 冰(冷冻机 chiller)。
*/
export function ThermalChillerScreenDemo() {
return (
<ThermalChillerScreen
energy={{ amount: 240000, capacity: 400000 }}
fluid={{ amount: 1000, capacity: 4000, tint: "#3c64c8" }}
input={undefined}
onSlotClick={() => {}}
output={{ count: 1, icon: "ice", tooltip: "冰" }}
playerHotbar={THERMAL_DEMO_PLAYER_HOTBAR}
playerItems={THERMAL_DEMO_PLAYER_MAIN}
progress={0.35}
speed={0.6}
/>
);
}
Install
$pnpm add @tennantite/thermalnpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/thermal/src/thermal-chiller-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.