Documentation
ThermalRockGenScreen
Thermal 岩石生成器界面(DeviceRockGenScreen 176×166):流体进度箭头 (84,35)、下方方块槽 (43,45) 与岩浆/相邻方块展示位 (33,24)/(55,24)。
岩石生成器玩家
import {
THERMAL_DEMO_PLAYER_HOTBAR,
THERMAL_DEMO_PLAYER_MAIN,
} from "../thermal-demo-data";
import { ThermalRockGenScreen } from "./index";
/**
* ThermalRockGenScreen 预览用例:岩石生成器(rock_gen),无物品配方。
*/
export function ThermalRockGenScreenDemo() {
return (
<ThermalRockGenScreen
input={undefined}
onSlotClick={() => {}}
playerHotbar={THERMAL_DEMO_PLAYER_HOTBAR}
playerItems={THERMAL_DEMO_PLAYER_MAIN}
progress={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-rock-gen-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.