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

Method GetObjective

src/Scoreboard.cpp:339–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337
338
339cObjective * cScoreboard::GetObjective(const AString & a_Name)
340{
341 cCSLock Lock(m_CSObjectives);
342
343 cObjectiveMap::iterator it = m_Objectives.find(a_Name);
344
345 if (it == m_Objectives.end())
346 {
347 return NULL;
348 }
349 else
350 {
351 return &it->second;
352 }
353}
354
355
356

Callers 1

LoadScoreboardFromNBTMethod · 0.80

Calls 1

endMethod · 0.80

Tested by

no test coverage detected