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

Method detectTexturePacks

src/periphery/Periphery.java:78–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 }
77
78 public static String[] detectTexturePacks() {
79 File file = new File(SC_TEXTURE_FOLDER + File.separator);
80 File[] files = file.listFiles(new DirectoryFilter());
81 if (files == null) {
82 // TODO
83 Loggger.log("no textures to install found");
84 } else {
85 int length = files.length;
86 String[] detectedTexturePacks = new String[length];
87 int i = 0;
88 for (File f : files) {
89 detectedTexturePacks[i] = f.getName();
90 i++;
91 }
92 return detectedTexturePacks;
93 }
94 return null;
95 }
96}

Callers 1

initDetailsMethod · 0.95

Calls 2

logMethod · 0.95
getNameMethod · 0.45

Tested by

no test coverage detected