Documentation
EioSagMillScreen
Ender IO SAG mill (176×208): input, 4 outputs, grinding ball slot with a 4×16 durability bar, 16×24 vertical progress, energy and the right-side controls.
SAG 磨粉机物品栏
import { EIO_DEMO_GOLD_INGOT, EIO_DEMO_GUNPOWDER, EIO_DEMO_IRON_ORE } from "../eio-demo-data";
import { EioSagMillScreen } from "./index";
interface EioSagMillScreenDemoProps {
energy?: { max: number; value: number };
progress?: number;
}
/**
* SAG 磨粉机预览:铁矿石 16 → 金锭 ×4,研磨球耐久 70%,进度 35%,能量 72%。
*/
export function EioSagMillScreenDemo({
energy = { max: 100000, value: 72000 },
progress = 0.35,
}: EioSagMillScreenDemoProps = {}) {
return (
<EioSagMillScreen
energy={energy}
grindingBall={{ durability: 0.7 }}
grindingBallSlot={EIO_DEMO_GUNPOWDER}
input={EIO_DEMO_IRON_ORE}
onRedstoneChange={() => {}}
onSlotClick={() => {}}
outputs={[EIO_DEMO_GOLD_INGOT, EIO_DEMO_GOLD_INGOT, EIO_DEMO_GOLD_INGOT, EIO_DEMO_GOLD_INGOT]}
progress={progress}
state="active"
/>
);
}
Install
$pnpm add @tennantite/enderionpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/enderio/src/eio-sag-mill-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.