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

Method CallHookPlayerUsingBlock

src/Bindings/PluginManager.cpp:1033–1048  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1031
1032
1033bool cPluginManager::CallHookPlayerUsingBlock(cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta)
1034{
1035 HookMap::iterator Plugins = m_Hooks.find(HOOK_PLAYER_USING_BLOCK);
1036 if (Plugins == m_Hooks.end())
1037 {
1038 return false;
1039 }
1040 for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr)
1041 {
1042 if ((*itr)->OnPlayerUsingBlock(a_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, a_BlockType, a_BlockMeta))
1043 {
1044 return true;
1045 }
1046 }
1047 return false;
1048}
1049
1050
1051

Callers 1

HandleRightClickMethod · 0.80

Calls 3

endMethod · 0.80
beginMethod · 0.80
OnPlayerUsingBlockMethod · 0.80

Tested by

no test coverage detected