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

Method GetNumSlots

src/UI/Window.cpp:59–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57
58
59int cWindow::GetNumSlots(void) const
60{
61 int res = 0;
62 for (cSlotAreas::const_iterator itr = m_SlotAreas.begin(), end = m_SlotAreas.end(); itr != end; ++itr)
63 {
64 res += (*itr)->GetNumSlots();
65 } // for itr - m_SlotAreas[]
66 return res;
67}
68
69
70

Callers 15

SendWholeInventoryMethod · 0.45
SendWholeInventoryMethod · 0.45
MoveItemsFromGridMethod · 0.45
MoveItemsToGridMethod · 0.45
SaveToJsonMethod · 0.45
SaveToJsonMethod · 0.45
SaveToJsonMethod · 0.45
DropSpenseMethod · 0.45
LoadFromJsonMethod · 0.45
SaveToJsonMethod · 0.45
cSlotAreaItemGridMethod · 0.45
GetSlotsMethod · 0.45

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected