/**
  * Calculate the position data for a TIPS slot.
  *
  * @param slot the slot position in the grid (a number between 0, 399 inclusive)
  * @return a TIPS Data container
  */
 public TARDISTIPSData getTIPSData(int slot) {
   TARDISTIPSData data = new TARDISTIPSData();
   int factorX = 0;
   int factorZ = 0;
   int subtract = 0;
   if (slot > 399 && slot < 800) {
     factorX = 20480;
     subtract = 400;
   }
   if (slot > 799 && slot < 1200) {
     factorZ = 20480;
     subtract = 800;
   }
   if (slot > 1199 && slot < 1600) {
     factorX = 20480;
     factorZ = 20480;
     subtract = 1200;
   }
   int row = (slot - subtract) / 20;
   int col = (slot - subtract) % 20;
   data.setMinX((row * 1024) + factorX);
   data.setCentreX((row * 1024 + 496) + factorX);
   data.setMaxX((row * 1024 + 1023) + factorX);
   data.setMinZ((col * 1024) + factorZ);
   data.setCentreZ((col * 1024 + 496) + factorZ);
   data.setMaxZ((col * 1024 + 1023) + factorZ);
   data.setSlot(slot);
   return data;
 }
 /**
  * Calculate the position data for the Junk TARDIS TIPS slot.
  *
  * @return a TIPS Data container
  */
 public TARDISTIPSData getTIPSJunkData() {
   TARDISTIPSData data = new TARDISTIPSData();
   int row = -1;
   int col = -1;
   data.setMinX((row * 1024));
   data.setCentreX((row * 1024 + 496));
   data.setMaxX((row * 1024 + 1023));
   data.setMinZ((col * 1024));
   data.setCentreZ((col * 1024 + 496));
   data.setMaxZ((col * 1024 + 1023));
   data.setSlot(-999);
   return data;
 }