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

Method Item

src/World.cpp:2672–2676  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2670 cUpdateCommandBlock(const AString & a_Command) : m_Command(a_Command) {}
2671
2672 virtual bool Item(cCommandBlockEntity * a_CommandBlock) override
2673 {
2674 a_CommandBlock->SetCommand(m_Command);
2675 return false;
2676 }
2677 } CmdBlockCB (a_Command);
2678
2679 return DoWithCommandBlockAt(a_BlockX, a_BlockY, a_BlockZ, CmdBlockCB);

Callers 3

ForEachPlayerMethod · 0.45
DoWithPlayerMethod · 0.45
FindAndDoWithPlayerMethod · 0.45

Calls 1

SetCommandMethod · 0.80

Tested by

no test coverage detected