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!"); }
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(); }
protected void drawAuxGraphics(int posX, int posY, float ptick) { HandbookAuxData.drawGraphics( (HandbookRegistry) this.getEntry(), posX, posY, xSize, ySize, fontRendererObj, ri, subpage); }
protected void drawAuxData(int posX, int posY) { HandbookAuxData.drawPage(fontRendererObj, ri, screen, page, subpage, posX, posY); }