public static int getScreen(MachineRegistry m, TileEntity te) {
   if (m == MachineRegistry.ENGINE) return getEngineScreen(te);
   if (m == MachineRegistry.ADVANCEDGEARS) return TRANSDESC.getBaseScreen() + 1;
   for (int i = ENGINEDESC.ordinal(); i < TOOLDESC.ordinal(); i++) {
     if (tabList[i].machine == m) return tabList[i].getScreen();
   }
   return -1;
 }
 public static HandbookRegistry[] getToolTabs() {
   int size = RESOURCEDESC.ordinal() - TOOLDESC.ordinal() - 1;
   HandbookRegistry[] tabs = new HandbookRegistry[size];
   System.arraycopy(tabList, TOOLDESC.ordinal() + 1, tabs, 0, size);
   return tabs;
 }