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

Method readTextureOptions

src/periphery/TexturePack.java:25–34  ·  view source on GitHub ↗
(Path source)

Source from the content-addressed store, hash-verified

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

Callers 2

getTexturePackMethod · 0.95
areTexturesUpToDateMethod · 0.95

Calls 2

logMethod · 0.95
createMethod · 0.45

Tested by

no test coverage detected