Documentation
IeFluidSorterScreen
流体分拣器:6 面 × 8 流体过滤区(16×16 直接绘制区)+ 每面 NBT 开关,与分拣器同底图,176×244
流体分拣器物品栏
import { IeFluidSorterScreen } from "./index";
/**
* IeFluidSorterScreen 预览用例:若干流体过滤格与 NBT 开关。
*/
export function IeFluidSorterScreenDemo() {
return (
<IeFluidSorterScreen
filters={Array.from({ length: 48 }, (_, i) => i % 4 === 0 ? { tint: "#3a5cc8" } : (i % 4 === 1 ? { tint: "#7a8f3a" } : null))}
nbt={[true, false, true, false, true, false]}
onCellClick={() => {}}
onNbtClick={() => {}}
/>
);
}
Install
$pnpm add @tennantite/ienpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/ie/src/ie-fluid-sorter-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.