@SuppressWarnings("unchecked") public static String getMD5(FileType type, String version) { YAMLProcessor config = MinecraftYML.getMinecraftYML(); Map<String, Map<String, String>> builds = (Map<String, Map<String, String>>) config.getProperty("versions"); if (builds.containsKey(version)) { Map<String, String> files = builds.get(version); return files.get(type.name()); } return null; }
public static String getMD5(FileType type) { return getMD5(type, MinecraftYML.getLatestMinecraftVersion()); }