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

Method getVersionList

launcher/minecraft/Component.cpp:122–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122std::shared_ptr<class Meta::VersionList> Component::getVersionList() const
123{
124 // FIXME: what if the metadata index isn't loaded yet?
125 if(APPLICATION->metadataIndex()->hasUid(m_uid))
126 {
127 return APPLICATION->metadataIndex()->get(m_uid);
128 }
129 return nullptr;
130}
131
132int Component::getOrder()
133{

Callers 1

Calls 3

hasUidMethod · 0.80
metadataIndexMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected