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

Method setMetadata

launcher/minecraft/mod/Mod.cpp:63–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 m_local_details.status = status;
62}
63void Mod::setMetadata(std::shared_ptr<Metadata::ModStruct>&& metadata)
64{
65 if (status() == ModStatus::NoMetadata)
66 setStatus(ModStatus::Installed);
67
68 m_local_details.metadata = metadata;
69}
70
71std::pair<int, bool> Mod::compare(const Resource& other, SortType type) const
72{

Callers 3

modrinthCallbackMethod · 0.45
flameCallbackMethod · 0.45
executeTaskMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected