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

Method DigBlock

src/Blocks/ChunkInterface.cpp:7–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include "BlockHandler.h"
6
7bool cChunkInterface::DigBlock(cWorldInterface & a_WorldInterface, int a_X, int a_Y, int a_Z)
8{
9 cBlockHandler * Handler = cBlockInfo::GetHandler(GetBlock(a_X, a_Y, a_Z));
10 Handler->OnDestroyed(*this, a_WorldInterface, a_X, a_Y, a_Z);
11 return m_ChunkMap->DigBlock(a_X, a_Y, a_Z);
12}

Callers 4

OnDestroyedByPlayerMethod · 0.45
OnUpdateMethod · 0.45
OnDiggingMethod · 0.45
OnUpdateMethod · 0.45

Calls 1

OnDestroyedMethod · 0.45

Tested by

no test coverage detected