MCPcopy Create free account
hub / github.com/cuberite/cuberite / Resolve

Method Resolve

src/BlockID.cpp:55–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54
55 int Resolve(const AString & a_ItemName)
56 {
57 ItemMap::iterator itr = m_Map.find(a_ItemName);
58 if (itr == m_Map.end())
59 {
60 return -1;
61 }
62 return itr->second.first;
63 }
64
65
66 bool ResolveItem(const AString & a_ItemName, cItem & a_Item)

Callers 1

BlockStringToTypeFunction · 0.80

Calls 1

endMethod · 0.80

Tested by

no test coverage detected