Examples of ThreadDownloadImageData


Examples of net.minecraft.client.renderer.ThreadDownloadImageData

              if (subLine.startsWith("http")){
                capeUrl = subLine;

                ResourceLocation r = new ResourceLocation("DevCapes/" + group);
                ThreadDownloadImageData t = makeDownloadThread(r, capeUrl, null, new DevCapesImageBufferDownload());

                this.addCapeResource(group, r);
                this.addDownloadThread(group, t);

                continue;
View Full Code Here

Examples of net.minecraft.client.renderer.ThreadDownloadImageData

   */
  public static ThreadDownloadImageData makeDownloadThread(ResourceLocation par0ResourceLocation, String par1Str, ResourceLocation par2ResourceLocation, IImageBuffer par3IImageBuffer)
  {
    TextureManager texturemanager = Minecraft.getMinecraft().getTextureManager();

    TextureObject object = new ThreadDownloadImageData(par1Str, par2ResourceLocation, par3IImageBuffer);
    // Binds ResourceLocation to this.
    texturemanager.loadTexture(par0ResourceLocation, object);

    return (ThreadDownloadImageData)object;
  }
View Full Code Here

Examples of net.minecraft.src.ThreadDownloadImageData

  private AccessoryHandler() {
  }

  public static void addAccessory(String player, Accessory n, String url) {
    TextureManager tm= Minecraft.getMinecraft().getTextureManager();
    Object texture = new ThreadDownloadImageData(url, (ResourceLocation)null, new HDImageBufferDownload());   
    tm.loadTexture(new ResourceLocation("accessories/" + n.getType().toString()), (TextureObject)texture);
   
    Set<Pair<Accessory, String>> acs = sacs.get(player);
    if (acs == null) {
      acs = new HashSet<Pair<Accessory, String>>();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.