예제 #1
0
 @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;
 }
예제 #2
0
 public static String getMD5(FileType type) {
   return getMD5(type, MinecraftYML.getLatestMinecraftVersion());
 }