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

Method CallHookExploded

src/Bindings/PluginManager.cpp:487–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485
486
487bool cPluginManager::CallHookExploded(cWorld & a_World, double a_ExplosionSize, bool a_CanCauseFire, double a_X, double a_Y, double a_Z, eExplosionSource a_Source, void * a_SourceData)
488{
489 HookMap::iterator Plugins = m_Hooks.find(HOOK_EXPLODED);
490 if (Plugins == m_Hooks.end())
491 {
492 return false;
493 }
494 for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr)
495 {
496 if ((*itr)->OnExploded(a_World, a_ExplosionSize, a_CanCauseFire, a_X, a_Y, a_Z, a_Source, a_SourceData))
497 {
498 return true;
499 }
500 }
501 return false;
502}
503
504
505

Callers 1

DoExplosionAtMethod · 0.80

Calls 3

endMethod · 0.80
beginMethod · 0.80
OnExplodedMethod · 0.80

Tested by

no test coverage detected