Container refactoring

This commit is contained in:
Aidan C. Brady committed 2015-03-03 14:02:03 -05:00
1 parent 8d3dfc0c2c
commit 13f36a52a6
28 files changed
+173 -160

No files matched your search

@@ -20,19 +20,19 @@ public class ContainerUpgradeManagement extends Container
tileEntity = tile;
addSlotToContainer(new SlotMachineUpgrade((TileEntityContainerBlock)tile, tileEntity.getComponent().getUpgradeSlot(), 154, 7));
int slotX;
int slotY;
for(slotX = 0; slotX < 3; slotX++)
for(slotY = 0; slotY < 3; slotY++)
{
for(int slotY = 0; slotY < 9; slotY++)
for(int slotX = 0; slotX < 9; slotX++)
{
addSlotToContainer(new Slot(inventory, slotY + slotX * 9 + 9, 8 + slotY * 18, 84 + slotX * 18));
addSlotToContainer(new Slot(inventory, slotX + slotY * 9 + 9, 8 + slotX * 18, 84 + slotY * 18));
}
}
for(slotX = 0; slotX < 9; slotX++)
for(slotY = 0; slotY < 9; slotY++)
{
addSlotToContainer(new Slot(inventory, slotX, 8 + slotX * 18, 142));
addSlotToContainer(new Slot(inventory, slotY, 8 + slotY * 18, 142));
}
((TileEntityContainerBlock)tileEntity).open(inventory.player);