Container refactoring
This commit is contained in:
parent
8d3dfc0c2c
commit
13f36a52a6
28 changed files with 173 additions and 160 deletions
|
@ -26,19 +26,19 @@ public class ContainerAdvancedElectricMachine extends Container
|
||||||
addSlotToContainer(new SlotOutput(tentity, 2, 116, 35));
|
addSlotToContainer(new SlotOutput(tentity, 2, 116, 35));
|
||||||
addSlotToContainer(new SlotDischarge(tentity, 3, 31, 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);
|
tileEntity.open(inventory.player);
|
||||||
|
|
|
@ -24,19 +24,20 @@ public class ContainerChanceMachine extends Container
|
||||||
addSlotToContainer(new SlotDischarge(tentity, 1, 56, 53));
|
addSlotToContainer(new SlotDischarge(tentity, 1, 56, 53));
|
||||||
addSlotToContainer(new SlotOutput(tentity, 2, 116, 35));
|
addSlotToContainer(new SlotOutput(tentity, 2, 116, 35));
|
||||||
addSlotToContainer(new SlotOutput(tentity, 4, 132, 35));
|
addSlotToContainer(new SlotOutput(tentity, 4, 132, 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);
|
tileEntity.open(inventory.player);
|
||||||
|
|
|
@ -24,19 +24,19 @@ public class ContainerChemicalInfuser extends Container
|
||||||
addSlotToContainer(new SlotStorageTank(tentity, 2, 80, 65));
|
addSlotToContainer(new SlotStorageTank(tentity, 2, 80, 65));
|
||||||
addSlotToContainer(new SlotDischarge(tentity, 3, 155, 5));
|
addSlotToContainer(new SlotDischarge(tentity, 3, 155, 5));
|
||||||
|
|
||||||
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);
|
tileEntity.open(inventory.player);
|
||||||
|
|
|
@ -25,19 +25,19 @@ public class ContainerChemicalOxidizer extends Container
|
||||||
addSlotToContainer(new SlotDischarge(tentity, 1, 155, 5));
|
addSlotToContainer(new SlotDischarge(tentity, 1, 155, 5));
|
||||||
addSlotToContainer(new SlotStorageTank(tentity, 2, 155, 25));
|
addSlotToContainer(new SlotStorageTank(tentity, 2, 155, 25));
|
||||||
|
|
||||||
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);
|
tileEntity.open(inventory.player);
|
||||||
|
|
|
@ -10,19 +10,19 @@ public class ContainerDictionary extends Container
|
||||||
{
|
{
|
||||||
public ContainerDictionary(InventoryPlayer inventory)
|
public ContainerDictionary(InventoryPlayer inventory)
|
||||||
{
|
{
|
||||||
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,19 +18,20 @@ public class ContainerDynamicTank extends Container
|
||||||
tileEntity = tentity;
|
tileEntity = tentity;
|
||||||
addSlotToContainer(new Slot(tentity, 0, 146, 20));
|
addSlotToContainer(new Slot(tentity, 0, 146, 20));
|
||||||
addSlotToContainer(new SlotOutput(tentity, 1, 146, 51));
|
addSlotToContainer(new SlotOutput(tentity, 1, 146, 51));
|
||||||
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);
|
tileEntity.open(inventory.player);
|
||||||
|
|
|
@ -23,19 +23,20 @@ public class ContainerElectricMachine extends Container
|
||||||
addSlotToContainer(new Slot(tentity, 0, 56, 17));
|
addSlotToContainer(new Slot(tentity, 0, 56, 17));
|
||||||
addSlotToContainer(new SlotDischarge(tentity, 1, 56, 53));
|
addSlotToContainer(new SlotDischarge(tentity, 1, 56, 53));
|
||||||
addSlotToContainer(new SlotOutput(tentity, 2, 116, 35));
|
addSlotToContainer(new SlotOutput(tentity, 2, 116, 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);
|
tileEntity.open(inventory.player);
|
||||||
|
|
|
@ -22,19 +22,20 @@ public class ContainerElectricPump extends Container
|
||||||
addSlotToContainer(new Slot(tentity, 0, 28, 20));
|
addSlotToContainer(new Slot(tentity, 0, 28, 20));
|
||||||
addSlotToContainer(new SlotOutput(tentity, 1, 28, 51));
|
addSlotToContainer(new SlotOutput(tentity, 1, 28, 51));
|
||||||
addSlotToContainer(new SlotDischarge(tentity, 2, 143, 35));
|
addSlotToContainer(new SlotDischarge(tentity, 2, 143, 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);
|
tileEntity.open(inventory.player);
|
||||||
|
|
|
@ -25,19 +25,20 @@ public class ContainerElectrolyticSeparator extends Container
|
||||||
addSlotToContainer(new SlotStorageTank(tentity, 1, 59, 52));
|
addSlotToContainer(new SlotStorageTank(tentity, 1, 59, 52));
|
||||||
addSlotToContainer(new SlotStorageTank(tentity, 2, 101, 52));
|
addSlotToContainer(new SlotStorageTank(tentity, 2, 101, 52));
|
||||||
addSlotToContainer(new SlotDischarge(tentity, 3, 143, 35));
|
addSlotToContainer(new SlotDischarge(tentity, 3, 143, 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.openInventory();
|
tileEntity.openInventory();
|
||||||
|
|
|
@ -25,19 +25,19 @@ public class ContainerEnergyCube extends Container
|
||||||
addSlotToContainer(new SlotDischarge(unit, 1, 17, 35));
|
addSlotToContainer(new SlotDischarge(unit, 1, 17, 35));
|
||||||
addSlotToContainer(new SlotCharge(unit, 0, 143, 35));
|
addSlotToContainer(new SlotCharge(unit, 0, 143, 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);
|
tileEntity.open(inventory.player);
|
||||||
|
|
|
@ -77,19 +77,19 @@ public class ContainerFactory extends Container
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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, 95 + 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, 153));
|
addSlotToContainer(new Slot(inventory, slotY, 8 + slotY * 18, 142));
|
||||||
}
|
}
|
||||||
|
|
||||||
tileEntity.open(inventory.player);
|
tileEntity.open(inventory.player);
|
||||||
|
|
|
@ -16,19 +16,19 @@ public class ContainerFilter extends Container
|
||||||
{
|
{
|
||||||
tileEntity = tile;
|
tileEntity = tile;
|
||||||
|
|
||||||
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);
|
tileEntity.open(inventory.player);
|
||||||
|
|
|
@ -22,19 +22,20 @@ public class ContainerFluidicPlenisher extends Container
|
||||||
addSlotToContainer(new Slot(tentity, 0, 28, 20));
|
addSlotToContainer(new Slot(tentity, 0, 28, 20));
|
||||||
addSlotToContainer(new SlotOutput(tentity, 1, 28, 51));
|
addSlotToContainer(new SlotOutput(tentity, 1, 28, 51));
|
||||||
addSlotToContainer(new SlotDischarge(tentity, 2, 143, 35));
|
addSlotToContainer(new SlotDischarge(tentity, 2, 143, 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);
|
tileEntity.open(inventory.player);
|
||||||
|
|
|
@ -20,19 +20,19 @@ public class ContainerGasTank extends Container
|
||||||
addSlotToContainer(new SlotStorageTank(tentity, 0, 8, 8));
|
addSlotToContainer(new SlotStorageTank(tentity, 0, 8, 8));
|
||||||
addSlotToContainer(new SlotStorageTank(tentity, 1, 8, 40));
|
addSlotToContainer(new SlotStorageTank(tentity, 1, 8, 40));
|
||||||
|
|
||||||
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);
|
tileEntity.open(inventory.player);
|
||||||
|
|
|
@ -19,19 +19,20 @@ public class ContainerInductionMatrix extends Container
|
||||||
tileEntity = tentity;
|
tileEntity = tentity;
|
||||||
addSlotToContainer(new SlotCharge(tentity, 0, 146, 20));
|
addSlotToContainer(new SlotCharge(tentity, 0, 146, 20));
|
||||||
addSlotToContainer(new SlotDischarge(tentity, 1, 146, 51));
|
addSlotToContainer(new SlotDischarge(tentity, 1, 146, 51));
|
||||||
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);
|
tileEntity.open(inventory.player);
|
||||||
|
|
|
@ -14,19 +14,20 @@ public class ContainerLaserAmplifier extends Container
|
||||||
public ContainerLaserAmplifier(InventoryPlayer inventory, TileEntityLaserAmplifier tentity)
|
public ContainerLaserAmplifier(InventoryPlayer inventory, TileEntityLaserAmplifier tentity)
|
||||||
{
|
{
|
||||||
tileEntity = tentity;
|
tileEntity = tentity;
|
||||||
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);
|
tileEntity.open(inventory.player);
|
||||||
|
|
|
@ -26,19 +26,20 @@ public class ContainerMetallurgicInfuser extends Container
|
||||||
addSlotToContainer(new Slot(tentity, 1, 17, 35));
|
addSlotToContainer(new Slot(tentity, 1, 17, 35));
|
||||||
addSlotToContainer(new Slot(tentity, 2, 51, 43));
|
addSlotToContainer(new Slot(tentity, 2, 51, 43));
|
||||||
addSlotToContainer(new SlotOutput(tentity, 3, 109, 43));
|
addSlotToContainer(new SlotOutput(tentity, 3, 109, 43));
|
||||||
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);
|
tileEntity.open(inventory.player);
|
||||||
|
|
|
@ -22,19 +22,20 @@ public class ContainerPRC extends Container
|
||||||
addSlotToContainer(new Slot(tentity, 0, 54, 35));
|
addSlotToContainer(new Slot(tentity, 0, 54, 35));
|
||||||
addSlotToContainer(new SlotDischarge(tentity, 1, 141, 19));
|
addSlotToContainer(new SlotDischarge(tentity, 1, 141, 19));
|
||||||
addSlotToContainer(new SlotOutput(tentity, 2, 116, 35));
|
addSlotToContainer(new SlotOutput(tentity, 2, 116, 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);
|
tileEntity.open(inventory.player);
|
||||||
|
|
|
@ -19,19 +19,20 @@ public class ContainerPortableTank extends Container
|
||||||
tileEntity = tentity;
|
tileEntity = tentity;
|
||||||
addSlotToContainer(new Slot(tentity, 0, 146, 19));
|
addSlotToContainer(new Slot(tentity, 0, 146, 19));
|
||||||
addSlotToContainer(new SlotOutput(tentity, 1, 146, 51));
|
addSlotToContainer(new SlotOutput(tentity, 1, 146, 51));
|
||||||
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);
|
tileEntity.open(inventory.player);
|
||||||
|
|
|
@ -35,7 +35,7 @@ public class ContainerRobitInventory extends Container
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for(slotX = 0; slotX < 9; ++slotX)
|
for(slotX = 0; slotX < 9; slotX++)
|
||||||
{
|
{
|
||||||
addSlotToContainer(new Slot(inventory, slotX, 8 + slotX * 18, 142));
|
addSlotToContainer(new Slot(inventory, slotX, 8 + slotX * 18, 142));
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,19 +20,19 @@ public class ContainerRobitMain extends Container
|
||||||
|
|
||||||
robit.openInventory();
|
robit.openInventory();
|
||||||
|
|
||||||
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,19 +29,19 @@ public class ContainerRobitSmelting extends Container
|
||||||
addSlotToContainer(new Slot(entity, 29, 56, 53));
|
addSlotToContainer(new Slot(entity, 29, 56, 53));
|
||||||
addSlotToContainer(new SlotFurnace(inventory.player, entity, 30, 116, 35));
|
addSlotToContainer(new SlotFurnace(inventory.player, entity, 30, 116, 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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,19 +27,19 @@ public class ContainerRotaryCondensentrator extends Container
|
||||||
addSlotToContainer(new SlotOutput(tentity, 3, 155, 56));
|
addSlotToContainer(new SlotOutput(tentity, 3, 155, 56));
|
||||||
addSlotToContainer(new SlotDischarge(tentity, 4, 155, 5));
|
addSlotToContainer(new SlotDischarge(tentity, 4, 155, 5));
|
||||||
|
|
||||||
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);
|
tileEntity.open(inventory.player);
|
||||||
|
|
|
@ -18,19 +18,20 @@ public class ContainerSeismicVibrator extends Container
|
||||||
{
|
{
|
||||||
tileEntity = tentity;
|
tileEntity = tentity;
|
||||||
addSlotToContainer(new SlotDischarge(tentity, 0, 143, 35));
|
addSlotToContainer(new SlotDischarge(tentity, 0, 143, 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);
|
tileEntity.open(inventory.player);
|
||||||
|
|
|
@ -26,15 +26,15 @@ public class ContainerSolarEvaporationController extends Container
|
||||||
|
|
||||||
int slotY;
|
int slotY;
|
||||||
|
|
||||||
for(slotY = 0; slotY < 3; ++slotY)
|
for(slotY = 0; slotY < 3; slotY++)
|
||||||
{
|
{
|
||||||
for(int slotX = 0; slotX < 9; ++slotX)
|
for(int slotX = 0; slotX < 9; slotX++)
|
||||||
{
|
{
|
||||||
addSlotToContainer(new Slot(inventory, slotX + slotY * 9 + 9, 8 + slotX * 18, 84 + slotY * 18));
|
addSlotToContainer(new Slot(inventory, slotX + slotY * 9 + 9, 8 + slotX * 18, 84 + slotY * 18));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for(slotY = 0; slotY < 9; ++slotY)
|
for(slotY = 0; slotY < 9; slotY++)
|
||||||
{
|
{
|
||||||
addSlotToContainer(new Slot(inventory, slotY, 8 + slotY * 18, 142));
|
addSlotToContainer(new Slot(inventory, slotY, 8 + slotY * 18, 142));
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,19 +23,19 @@ public class ContainerSolarNeutronActivator extends Container
|
||||||
addSlotToContainer(new SlotStorageTank(tentity, 0, 5, 56));
|
addSlotToContainer(new SlotStorageTank(tentity, 0, 5, 56));
|
||||||
addSlotToContainer(new SlotStorageTank(tentity, 1, 155, 56));
|
addSlotToContainer(new SlotStorageTank(tentity, 1, 155, 56));
|
||||||
|
|
||||||
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);
|
tileEntity.open(inventory.player);
|
||||||
|
|
|
@ -18,19 +18,20 @@ public class ContainerTeleporter extends Container
|
||||||
{
|
{
|
||||||
tileEntity = tentity;
|
tileEntity = tentity;
|
||||||
addSlotToContainer(new SlotDischarge(tentity, 0, 27, 14));
|
addSlotToContainer(new SlotDischarge(tentity, 0, 27, 14));
|
||||||
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);
|
tileEntity.open(inventory.player);
|
||||||
|
|
|
@ -20,19 +20,19 @@ public class ContainerUpgradeManagement extends Container
|
||||||
tileEntity = tile;
|
tileEntity = tile;
|
||||||
addSlotToContainer(new SlotMachineUpgrade((TileEntityContainerBlock)tile, tileEntity.getComponent().getUpgradeSlot(), 154, 7));
|
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);
|
((TileEntityContainerBlock)tileEntity).open(inventory.player);
|
||||||
|
|
Loading…
Reference in a new issue