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

Method getComponentVersion

launcher/minecraft/PackProfile.cpp:991–999  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

989}
990
991QString PackProfile::getComponentVersion(const QString& uid) const
992{
993 const auto iter = d->componentIndex.find(uid);
994 if (iter != d->componentIndex.end())
995 {
996 return (*iter)->getVersion();
997 }
998 return QString();
999}
1000
1001void PackProfile::disableInteraction(bool disable)
1002{

Calls 4

QStringClass · 0.85
endMethod · 0.80
findMethod · 0.45
getVersionMethod · 0.45

Tested by

no test coverage detected