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(); } }
/** * 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); }