public static void splitTextures(File destination,File texturePack,double scale,boolean alphas,ProgressCallback progress) throws Exception {
  if (destination == null)   throw new IllegalArgumentException("destination cannot be null");
  Log.info("Exporting textures to \"" + destination + "\"");
  if (!destination.exists() || !destination.isDirectory()) {
    if (destination.exists())     throw new RuntimeException("Cannot create texture directory! File is in the way!");
    if (!destination.mkdir())     throw new RuntimeException("Cannot create texture directory!");
  }
  getTextures(texturePack,scale,progress,alphas,false,destination);
}

public static void splitTextures ( File destination , File texturePack , double scale , boolean alphas , ProgressCallback progress ) throws Exception { if ( destination == null ) throw new IllegalArgumentException ( "destination cannot be null" ) ; Log . info ( "Exporting textures to \"" + destination + "\"" ) ; if ( ! destination . exists ( ) || ! destination . isDirectory ( ) ) { if ( destination . exists ( ) ) throw new RuntimeException ( "Cannot create texture directory! File is in the way!" ) ; if ( ! destination . mkdir ( ) ) throw new RuntimeException ( "Cannot create texture directory!" ) ; } getTextures ( texturePack , scale , progress , alphas , false , destination ) ; }
reads a minecraft texture pack and splits the individual block textures into . png images .
