Documentation
ThermalBrewerScreen
Thermal 酿造机界面(MachineBrewerScreen 176×166):输入槽、medium 输入/产物流体罐 (34,22)/(125,22)、液滴进度 (87,35)、scale_alchemy 速度元素。
酿造机玩家
import {
THERMAL_DEMO_PLAYER_HOTBAR,
THERMAL_DEMO_PLAYER_MAIN,
} from "../thermal-demo-data";
import { ThermalBrewerScreen } from "./index";
/**
* ThermalBrewerScreen 预览用例:酿造机以流体 + 配料工作,不产出物品。
*/
export function ThermalBrewerScreenDemo() {
return (
<ThermalBrewerScreen
energy={{ amount: 240000, capacity: 400000 }}
fluid={{ amount: 3000, capacity: 4000, tint: "#3c64c8" }}
fluids={[
{ amount: 1600, capacity: 4000, tint: "#7a3ce0" },
]}
input={{ count: 1, icon: "nether-wart", tooltip: "地狱疣" }}
onSlotClick={() => {}}
playerHotbar={THERMAL_DEMO_PLAYER_HOTBAR}
playerItems={THERMAL_DEMO_PLAYER_MAIN}
progress={0.6}
speed={0.5}
/>
);
}
Install
$pnpm add @tennantite/thermalnpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/thermal/src/thermal-brewer-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.