MCPcopy Create free account
hub / github.com/FabricMC/Matcher / save

Method save

src/main/java/matcher/config/ProjectConfig.java:211–227  ·  view source on GitHub ↗
(Preferences prefs)

Source from the content-addressed store, hash-verified

209 }
210
211 void save(Preferences prefs) throws BackingStoreException {
212 if (!isValid()) return;
213
214 Config.saveList(prefs.node(pathsAKey), pathsA);
215 Config.saveList(prefs.node(pathsBKey), pathsB);
216 Config.saveList(prefs.node(classPathAKey), classPathA);
217 Config.saveList(prefs.node(classPathBKey), classPathB);
218 Config.saveList(prefs.node(pathsSharedKey), sharedClassPath);
219 prefs.putBoolean(inputsBeforeClassPathKey, inputsBeforeClassPath);
220 if (mappingsPathA != null) prefs.put(mappingsPathAKey, mappingsPathA.toString());
221 if (mappingsPathB != null) prefs.put(mappingsPathBKey, mappingsPathB.toString());
222 prefs.putBoolean(saveUnmappedMatchesKey, saveUnmappedMatches);
223 prefs.put(nonObfuscatedClassPatternAKey, nonObfuscatedClassPatternA);
224 prefs.put(nonObfuscatedClassPatternBKey, nonObfuscatedClassPatternB);
225 prefs.put(nonObfuscatedMemberPatternAKey, nonObfuscatedMemberPatternA);
226 prefs.put(nonObfuscatedMemberPatternBKey, nonObfuscatedMemberPatternB);
227 }
228
229 public static final ProjectConfig EMPTY = new ProjectConfig(Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), Collections.emptyList(),
230 false, null, null, true, "", "", "", "");

Callers

nothing calls this directly

Calls 3

isValidMethod · 0.95
saveListMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected