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

Method TickBlock

src/Chunk.cpp:630–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

628
629
630void cChunk::TickBlock(int a_RelX, int a_RelY, int a_RelZ)
631{
632 unsigned Index = MakeIndex(a_RelX, a_RelY, a_RelZ);
633 cBlockHandler * Handler = BlockHandler(m_BlockTypes[Index]);
634 ASSERT(Handler != NULL); // Happenned on server restart, FS #243
635 cChunkInterface ChunkInterface(this->GetWorld()->GetChunkMap());
636 cBlockInServerPluginInterface PluginInterface(*this->GetWorld());
637 Handler->OnUpdate(ChunkInterface, *this->GetWorld(), PluginInterface,*this, a_RelX, a_RelY, a_RelZ);
638}
639
640
641

Callers 1

TickQueuedBlocksMethod · 0.45

Calls 4

GetWorldMethod · 0.95
BlockHandlerFunction · 0.85
GetChunkMapMethod · 0.80
OnUpdateMethod · 0.45

Tested by

no test coverage detected