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

Method allMods

launcher/minecraft/mod/ModFolderModel.cpp:242–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242auto ModFolderModel::allMods() -> QList<Mod*>
243{
244 QList<Mod*> mods;
245
246 for (auto& res : qAsConst(m_resources)) {
247 mods.append(static_cast<Mod*>(res.get()));
248 }
249
250 return mods;
251}
252
253void ModFolderModel::onUpdateSucceeded()
254{

Callers 3

updateModsMethod · 0.80
verboseDescriptionMethod · 0.80
test_addFromWatchFunction · 0.80

Calls 2

appendMethod · 0.80
getMethod · 0.45

Tested by 1

test_addFromWatchFunction · 0.64