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

Method ParseCreativeInventoryAction

src/Protocol/Protocol125.cpp:1309–1320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1307
1308
1309int cProtocol125::ParseCreativeInventoryAction(void)
1310{
1311 HANDLE_PACKET_READ(ReadBEShort, short, SlotNum);
1312 cItem HeldItem;
1313 int res = ParseItem(HeldItem);
1314 if (res < 0)
1315 {
1316 return res;
1317 }
1318 m_Client->HandleCreativeInventory(SlotNum, HeldItem);
1319 return PARSE_OK;
1320}
1321
1322
1323

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected