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

@@ -26,19 +26,19 @@ public class ContainerAdvancedElectricMachine extends Container
addSlotToContainer(new SlotOutput(tentity, 2, 116, 35));
addSlotToContainer(new SlotDischarge(tentity, 3, 31, 35));
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));
}
tileEntity.open(inventory.player);