MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / modId

Method modId

source/game/StarMaterialDatabase.cpp:304–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304ModId MaterialDatabase::modId(String const& modName) const {
305 if (auto m = m_metaModIndex.maybeRight(modName))
306 return *m;
307 else
308 return m_modIndex.get(modName);
309}
310
311String const& MaterialDatabase::modName(ModId mod) const {
312 if (isRealMod(mod))

Callers 7

readBiomePlaceablesMethod · 0.80
readOresMethod · 0.80
processActionMethod · 0.80
paintMethod · 0.80
enterStageMethod · 0.80
makeRootCallbacksMethod · 0.80
placeModMethod · 0.80

Calls 2

maybeRightMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected