MCPcopy Create free account
hub / github.com/Garten/sourcecraft / getTexturePack

Method getTexturePack

src/periphery/TexturePack.java:36–41  ·  view source on GitHub ↗
(String texturePackName)

Source from the content-addressed store, hash-verified

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();

Callers 2

getConverterDataMethod · 0.95

Calls 1

readTextureOptionsMethod · 0.95

Tested by

no test coverage detected