/** * Called when a klaxon has been received. * * @param task the task. */ private static synchronized void gotKlaxon(IDownload task) { String name = task.getName(); File file = task.getFile(); FMLLog.log(MOD_ID, Level.INFO, "Klaxon %s saved to %s", name, file.getAbsolutePath()); // Adds the klaxon to the sound manager. Minecraft.getMinecraft().sndManager.addSound(name + ".ogg", file); // Adds to the list of loaded klaxons. loadedKlaxons.add(name); loadingKlaxons.remove(name); }