ContainerAmmoFurnace.java 文件源码

java
阅读 23 收藏 0 点赞 0 评论 0

项目:Mods 作者:
public ContainerAmmoFurnace(InventoryPlayer playerInventory, IInventory furnaceInventory) {
    this.tileFurnace = furnaceInventory;
    for (int i = 0; i < 9; i++)
        this.addSlotToContainer(new Slot(furnaceInventory, i, 9 + (i % 3) * 18, 17 + (i / 3) * 18));
    this.addSlotToContainer(new SlotFurnaceFuel(furnaceInventory, 9, 80, 53));
    for (int i = 0; i < 9; i++)
        this.addSlotToContainer(new SlotFurnaceOutput(playerInventory.player, furnaceInventory, i + 10,
                116 + (i % 3) * 18, 17 + (i / 3) * 18));

    for (int i = 0; i < 3; ++i)
        for (int j = 0; j < 9; ++j)
            this.addSlotToContainer(new Slot(playerInventory, j + i * 9 + 9, 8 + j * 18, 84 + i * 18));

    for (int k = 0; k < 9; ++k)
        this.addSlotToContainer(new Slot(playerInventory, k, 8 + k * 18, 142));
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号