Documentation
ThermalPressScreen
Thermal 压缩机界面(MachinePressScreen 176×166):上/下输入槽、26×26 产物槽 (111,30)、medium 产物流体罐 (151,22)、流体进度箭头 (78,35)、scale_compact 速度元素。
Full-screen previewPreview pages are excluded from search indexes
压缩机玩家
Composition
These are the composable components; the Block only places them at vanilla coordinates.
Code
import {
THERMAL_DEMO_PLAYER_HOTBAR,
THERMAL_DEMO_PLAYER_MAIN,
} from "../thermal-demo-data";
import { ThermalPressScreen } from "./index";
/**
* ThermalPressScreen 预览用例:铁锭 → 铁板(压缩机 press)。
*/
export function ThermalPressScreenDemo() {
return (
<ThermalPressScreen
energy={{ amount: 240000, capacity: 400000 }}
fluid={{ amount: 2700, capacity: 4000, tint: "#c8a014" }}
input={{ count: 1, icon: "iron-ingot", tooltip: "铁锭" }}
inputs={[null]}
onSlotClick={() => {}}
output={{ count: 1, icon: "iron-ingot", tooltip: "铁板" }}
playerHotbar={THERMAL_DEMO_PLAYER_HOTBAR}
playerItems={THERMAL_DEMO_PLAYER_MAIN}
progress={0.6}
speed={0.75}
/>
);
}