public void onSuccess(File par1File) {
   if (TexturePackList.func_77301_a(this.texturePacks)) {
     TexturePackList.setSelectedTexturePack(
         this.texturePacks,
         new TexturePackCustom(
             TexturePackList.generateTexturePackID(this.texturePacks, par1File), par1File));
     TexturePackList.getMinecraft(this.texturePacks).scheduleTexturePackRefresh();
   }
 }
Ejemplo n.º 2
0
 /**
  * Generate an internal texture pack ID from the file/directory name, last modification time, and
  * file size. Returns null if the file/directory is not a texture pack. (Inner class static
  * accessor method).
  */
 static String generateTexturePackID(TexturePackList par0TexturePackList, File par1File) {
   return par0TexturePackList.generateTexturePackID(par1File);
 }