文档目录
酿造机界面
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}
/>
);
}
安装
$pnpm add @tennantite/thermalnpm 方式安装编译产物;需要改造源码请用上方的 CLI 拷贝安装。
源码
packages/thermal/src/thermal-brewer-screen/index.tsxnpm 包保留源码目录,可直接复制改造。