public static void onTick() {
   if (waiting) {
     ScreenshotTaker.capture(
         VoxelCamCore.getConfig().getIntProperty(VoxelCamConfig.PHOTOWIDTH),
         VoxelCamCore.getConfig().getIntProperty(VoxelCamConfig.PHOTOHEIGHT),
         VoxelCamCore.getConfig().getStringProperty(VoxelCamConfig.BIGSCREENSHOTNAMINGMETHOD));
     fbo.end();
     fbo.dispose();
     returnMinecraftToNormal();
     Minecraft.getMinecraft().gameSettings.hideGUI = false;
     waiting = false;
   }
 }
 public static void run() {
   Minecraft.getMinecraft().gameSettings.hideGUI = true;
   originalWidthOfScreen = Minecraft.getMinecraft().displayWidth;
   originalHeightOfScreen = Minecraft.getMinecraft().displayHeight;
   resizeMinecraft(
       VoxelCamCore.getConfig().getIntProperty(VoxelCamConfig.PHOTOWIDTH),
       VoxelCamCore.getConfig().getIntProperty(VoxelCamConfig.PHOTOHEIGHT));
   fbo = new FBO();
   fbo.begin(
       VoxelCamCore.getConfig().getIntProperty(VoxelCamConfig.PHOTOWIDTH),
       VoxelCamCore.getConfig().getIntProperty(VoxelCamConfig.PHOTOHEIGHT));
   waiting = true;
 }