Documentation
ThermalRedstoneFurnaceScreen
Thermal redstone furnace (1.20.x original textures): input / fuel slots, progress arrow, flame, vertical energy gauge, 26×26 output and a right-side 3×3 augment panel.
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 { ThermalRedstoneFurnaceScreen } from "./index";
interface ThermalRedstoneFurnaceScreenDemoProps {
energy?: { amount: number; capacity: number };
progress?: number;
speed?: number;
}
/**
* 空载状态(强化面板关闭、无输入输出)。
*/
export function ThermalRedstoneFurnaceIdleDemo() {
return (
<ThermalRedstoneFurnaceScreen
energy={{ amount: 80000, capacity: 400000 }}
input={{ count: 1, icon: "iron-ore", tooltip: "铁矿石" }}
onAugmentsToggle={() => {}}
playerHotbar={THERMAL_DEMO_PLAYER_HOTBAR}
playerItems={THERMAL_DEMO_PLAYER_MAIN}
/>
);
}
/**
* ThermalRedstoneFurnaceScreen 预览用例:打开强化面板,铁矿石 → 铁锭,进度 0.5。
*/
export function ThermalRedstoneFurnaceScreenDemo({
energy = { amount: 240000, capacity: 400000 },
progress = 0.5,
speed = 0.75,
}: ThermalRedstoneFurnaceScreenDemoProps = {}) {
return (
<ThermalRedstoneFurnaceScreen
augments={[
{ icon: "gunpowder", tooltip: "强化:处理速度" },
{ icon: "blaze-powder", tooltip: "强化:能量效率" },
null,
{ icon: "lapis-lazuli", tooltip: "强化:次要输出" },
]}
augmentsOpen
energy={energy}
input={{ count: 1, icon: "iron-ore", tooltip: "铁矿石" }}
onAugmentsToggle={() => {}}
onSlotClick={() => {}}
output={{ count: 1, icon: "iron-ingot", tooltip: "铁锭" }}
playerHotbar={THERMAL_DEMO_PLAYER_HOTBAR}
playerItems={THERMAL_DEMO_PLAYER_MAIN}
progress={progress}
speed={speed}
/>
);
}