(Path source)
| 23 | } |
| 24 | |
| 25 | public static TextureOptions readTextureOptions(Path source) { |
| 26 | try { |
| 27 | Gson gson = new GsonBuilder().create(); |
| 28 | String fileAsString = new String(Files.readAllBytes(source)); |
| 29 | return gson.fromJson(fileAsString, TextureOptions.class); |
| 30 | } catch (IOException e) { |
| 31 | e.printStackTrace(); |
| 32 | } |
| 33 | return null; |
| 34 | } |
| 35 | |
| 36 | public static TexturePack getTexturePack(String texturePackName) { |
| 37 | TexturePack result = new TexturePack(texturePackName); |
no test coverage detected