Package org.spoutcraft.client.io

Examples of org.spoutcraft.client.io.Download


    } else {
      song = new File(directory, fileName);
    }

    QueuedSound action = new QueuedSound(song, x, y, z, volume, distance, soundEffect);
    Download download = new Download(fileName, directory, url, action);
    action.setNotify(!download.isDownloaded() && notify);
    if (!download.isDownloaded() && notify) {
      SpoutClient.getInstance().getActivePlayer().showAchievement("Downloading Music...", fileName, 2256 /*Gold Record*/);
    }
    FileDownloadThread.getInstance().addToDownloadQueue(download);
  }
 
View Full Code Here


                System.out.println("WARNING, Downloaded File " + fileName + "'s CRC " + crc + " did not match the expected CRC: " + finalCRC);
              }
            }
          };
        }
        Download data = new Download(fileName, directory, file, queued);
        FileDownloadThread.getInstance().addToDownloadQueue(data);
      }
    } else {
      if (FileUtil.isImageFile(fileName)) {
        CustomTextureManager.getTextureFromUrl(plugin, fileName);
View Full Code Here

TOP

Related Classes of org.spoutcraft.client.io.Download

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.