public ContainerPressureCooker(InventoryPlayer playerInventory, TileEntity tileEntity) {
this.inventoryPlayer = playerInventory;
this.itemHandler = (IItemHandlerModifiable) tileEntity.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null);
for (int i = 0; i < 2; ++i)
for (int j = 0; j < 3; ++j)
addSlotToContainer(new SlotItemHandler(itemHandler, j + i * 2, 43 + j * 24, 15 + i * 34));
addSlotToContainer(new SlotItemHandler(itemHandler, 6, 141 + 4, 28 + 4));
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));
}
ContainerPressureCooker.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:FoodCraft-Reloaded
作者:
评论列表
文章目录