MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / traits

Method traits

launcher/minecraft/MinecraftInstance.cpp:218–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218QSet<QString> MinecraftInstance::traits() const
219{
220 auto components = getPackProfile();
221 if (!components)
222 {
223 return {"version-incomplete"};
224 }
225 auto profile = components->getProfile();
226 if (!profile)
227 {
228 return {"version-incomplete"};
229 }
230 return profile->getTraits();
231}
232
233QString MinecraftInstance::gameRoot() const
234{

Callers 2

shouldDisplayFunction · 0.45
shouldDisplayFunction · 0.45

Calls 1

getProfileMethod · 0.80

Tested by

no test coverage detected