public static HandbookRegistry getEntry(int screen, int page) {
   // ReikaJavaLibrary.pConsole(screen+"   "+page);
   if (screen < TERMS.getScreen()) return TOC;
   HandbookRegistry h = HandbookAuxData.getMapping(screen, page);
   return h != null ? h : TOC;
   // throw new RuntimeException("Handbook screen "+screen+" and page "+page+" do not correspond to
   // an entry!");
 }
示例#2
0
 public int getMaxSubpage() {
   HandbookRegistry h = HandbookRegistry.getEntry(screen, page);
   if (h == HandbookRegistry.TIERS) return HandbookAuxData.getPowerDataSize() - 1;
   if (h == HandbookRegistry.COMPUTERCRAFT) return MachineRegistry.machineList.length / 36 + 1;
   if (h == HandbookRegistry.ALERTS)
     return HandbookNotifications.instance.getNewAlerts().size() / 3;
   if (h == HandbookRegistry.PACKMODS)
     return PackModificationTracker.instance.getModifications(RotaryCraft.instance).size() / 3;
   return h.hasSubpages() ? 1 + h.getBonusSubpages() : h.getBonusSubpages();
 }
示例#3
0
 protected void drawAuxGraphics(int posX, int posY, float ptick) {
   HandbookAuxData.drawGraphics(
       (HandbookRegistry) this.getEntry(), posX, posY, xSize, ySize, fontRendererObj, ri, subpage);
 }
示例#4
0
 protected void drawAuxData(int posX, int posY) {
   HandbookAuxData.drawPage(fontRendererObj, ri, screen, page, subpage, posX, posY);
 }