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

Method getComponent

launcher/minecraft/PackProfile.cpp:522–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520}
521
522Component * PackProfile::getComponent(const QString &id)
523{
524 auto iter = d->componentIndex.find(id);
525 if (iter == d->componentIndex.end())
526 {
527 return nullptr;
528 }
529 return (*iter).get();
530}
531
532Component * PackProfile::getComponent(int index)
533{

Callers 10

shouldDisplayMethod · 0.80
packageCurrentMethod · 0.80
updateButtonsMethod · 0.80
currentMethod · 0.80
mcVersionsFunction · 0.80
remoteLoadSucceededMethod · 0.80
executeTaskMethod · 0.80

Calls 4

endMethod · 0.80
findMethod · 0.45
getMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected