@Override
 protected void actionPerformed(GuiButton button) {
   if (System.currentTimeMillis() - buttoncooldown >= 50) {
     if (button.id == 2 && modifier > 0) {
       modifier--;
     } else if (button.id == 3) {
       if (modifier < view.getSizeY() - 1) modifier++;
     } else {
       modifier = 0;
     }
   }
   // renderq = 22.5F;
   super.actionPerformed(button);
   this.initGui();
 }
 @Override
 protected void actionPerformed(GuiButton button) {
   if (button.id == 0 && index > 0) {
     index--;
     recipeTextOffset = 0;
     subpage = Math.min(subpage, this.getMaxSubpage());
   } else if (button.id == 1 && index < recipes.size() - 1) {
     index++;
     recipeTextOffset = 0;
     subpage = Math.min(subpage, this.getMaxSubpage());
   }
   if (button.id == 2 && recipeTextOffset > 0) {
     recipeTextOffset--;
   } else if (button.id == 3 && recipeTextOffset < this.getItemCounts().size() - 11) {
     recipeTextOffset++;
   }
   // renderq = 22.5F;
   super.actionPerformed(button);
   this.initGui();
 }
  @Override
  protected void actionPerformed(GuiButton b) {
    super.actionPerformed(b);

    if (b.id == 0) {
      mode = 0;
      render.reset();
      this.initGui();
    } else if (b.id == 1) {
      mode = 1;
      this.initGui();
    } else if (b.id == 2) {
      render.incrementStepY();
      this.initGui();
    } else if (b.id == 3) {
      render.decrementStepY();
      this.initGui();
    } else if (b.id == 4) {
      mode = 2;
      this.initGui();
    }
  }