Пример #1
0
 @SubscribeEvent
 public void tick(TickEvent.ClientTickEvent event) {
   if (downloadThread != null && downloadThread.isFinished) {
     if (downloadThread.isReloadRequired()) LogHelper.info("Image Download Finished");
     downloadStatus = downloadThread.wasSuccessful ? 1 : 2;
     FMLCommonHandler.instance().bus().unregister(this);
     addRSPack(event != null);
     downloadThread = null;
   }
 }
Пример #2
0
  public static void init(FMLPreInitializationEvent event) {
    FMLCommonHandler.instance().bus().register(instance);

    if (event != null)
      savePath =
          event.getModConfigurationDirectory().getParentFile().getAbsolutePath()
              + "/config/draconicevolution";
    GUIManual.loadPages();

    downloadThread = new DownloadThread(GUIManual.imageURLs);
    downloadThread.start();
  }