package cpw.mods.ironchest; import net.minecraft.src.IInventory; import net.minecraft.src.Slot; public class ContainerDiamondChest extends ContainerIronChestBase { public ContainerDiamondChest(IInventory playerInventory, IInventory chestInventory) { super(playerInventory, chestInventory); } private static final int NUM_ROWS = 9; private static final int ROW_LENGTH = 12; @Override protected void layoutContainer(IInventory playerInventory, IInventory chestInventory) { for(int i = 0; i < NUM_ROWS; i++) { for(int l = 0; l < ROW_LENGTH; l++) { addSlot(new Slot(chestInventory, l + i * ROW_LENGTH, 12 + l * 18, 8 + i * 18)); } } for(int j = 0; j < 3; j++) { for(int i1 = 0; i1 < 9; i1++) { addSlot(new Slot(playerInventory, i1 + j * 9 + 9, 39 + i1 * 18, 174 + j * 18)); } } for(int k = 0; k < 9; k++) { addSlot(new Slot(playerInventory, k, 39 + k * 18, 232)); } } @Override protected int getRowLength() { return ROW_LENGTH; } }