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

Method SendWholeInventory

src/Protocol/Protocol125.cpp:1081–1087  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1079
1080
1081void cProtocol125::SendWholeInventory(const cWindow & a_Window)
1082{
1083 cCSLock Lock(m_CSPacket);
1084 cItems Slots;
1085 a_Window.GetSlots(*(m_Client->GetPlayer()), Slots);
1086 SendWindowSlots(a_Window.GetWindowID(), (int)Slots.size(), &(Slots[0]));
1087}
1088
1089
1090

Callers 1

SendWholeWindowMethod · 0.45

Calls 4

GetSlotsMethod · 0.80
GetWindowIDMethod · 0.80
sizeMethod · 0.80
GetPlayerMethod · 0.45

Tested by

no test coverage detected