Documentation
ThermalEnergyCellScreen
Thermal energy cell (1.20.x original textures): 16×42 inset-clipped energy gauge, input / output icons, 14×14 ± rate buttons and amount / capacity text.
储能仓
80160玩家
import { THERMAL_DEMO_PLAYER_HOTBAR, THERMAL_DEMO_PLAYER_MAIN } from "../thermal-demo-data";
import { ThermalEnergyCellScreen } from "./index";
/**
* ThermalEnergyCellScreen 预览用例:3.2M / 5M 能量,速率 80 / 160。
*/
export function ThermalEnergyCellScreenDemo() {
return (
<ThermalEnergyCellScreen
amount={3200000}
capacity={5000000}
inputRate={80}
maxInput={160}
maxOutput={320}
onInputChange={() => {}}
onOutputChange={() => {}}
outputRate={160}
playerHotbar={THERMAL_DEMO_PLAYER_HOTBAR}
playerItems={THERMAL_DEMO_PLAYER_MAIN}
/>
);
}
Install
$pnpm add @tennantite/thermalnpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/thermal/src/energy-cell-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.