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