文档目录
天空石箱界面
ME 天空石箱:skychest.png 176×195,36 格存储(9 列 ×4 行)。
全屏预览预览页不进入搜索引擎索引
ME 天空石箱物品栏
组成
这些是可直接组合的组件;Block 只是把它们按原版坐标放在一起。
代码
import { Ae2SkyChestScreen } from "./index";
/**
* Ae2SkyChestScreen 预览用例:空 36 格存储 + 满背包。
*/
export function Ae2SkyChestScreenDemo() {
return (
<Ae2SkyChestScreen
hotbarItems={Array.from({ length: 9 }, (_, index) => ({ icon: index % 2 ? "charcoal" : "iron-ingot" }))}
mainItems={Array.from({ length: 27 }, (_, index) => ({ icon: index % 3 === 0 ? "gold-ingot" : (index % 3 === 1 ? "iron-ingot" : "diamond") }))}
/>
);
}