(String texturePackName)
| 34 | } |
| 35 | |
| 36 | public static TexturePack getTexturePack(String texturePackName) { |
| 37 | TexturePack result = new TexturePack(texturePackName); |
| 38 | Path textureOptionsPath = new File(String.join(File.separator, TEXTURES_FOLDER, texturePackName, TEXTURE_OPTIONS_FILE)).toPath(); |
| 39 | result.textureOptions = readTextureOptions(result.textureOptions, textureOptionsPath); |
| 40 | return result; |
| 41 | } |
| 42 | |
| 43 | public static TextureOptions readTextureOptions(TextureOptions textureOptions, Path source) { |
| 44 | Gson gson = new GsonBuilder().create(); |
no test coverage detected