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

Method CallHookExploding

src/Bindings/PluginManager.cpp:508–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506
507
508bool cPluginManager::CallHookExploding(cWorld & a_World, double & a_ExplosionSize, bool & a_CanCauseFire, double a_X, double a_Y, double a_Z, eExplosionSource a_Source, void * a_SourceData)
509{
510 HookMap::iterator Plugins = m_Hooks.find(HOOK_EXPLODING);
511 if (Plugins == m_Hooks.end())
512 {
513 return false;
514 }
515 for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr)
516 {
517 if ((*itr)->OnExploding(a_World, a_ExplosionSize, a_CanCauseFire, a_X, a_Y, a_Z, a_Source, a_SourceData))
518 {
519 return true;
520 }
521 }
522 return false;
523}
524
525
526

Callers 1

DoExplosionAtMethod · 0.80

Calls 3

endMethod · 0.80
beginMethod · 0.80
OnExplodingMethod · 0.80

Tested by

no test coverage detected