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

Method HandleServerSpawnPickup

Tools/ProtoProxy/Connection.cpp:2336–2357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2334
2335
2336bool cConnection::HandleServerSpawnPickup(void)
2337{
2338 HANDLE_SERVER_PACKET_READ(ReadBEInt, int, EntityID);
2339 AString ItemDesc;
2340 if (!ParseSlot(m_ServerBuffer, ItemDesc))
2341 {
2342 return false;
2343 }
2344 HANDLE_SERVER_PACKET_READ(ReadBEInt, int, PosX);
2345 HANDLE_SERVER_PACKET_READ(ReadBEInt, int, PosY);
2346 HANDLE_SERVER_PACKET_READ(ReadBEInt, int, PosZ);
2347 HANDLE_SERVER_PACKET_READ(ReadByte, Byte, Rotation);
2348 HANDLE_SERVER_PACKET_READ(ReadByte, Byte, Pitch);
2349 HANDLE_SERVER_PACKET_READ(ReadByte, Byte, Roll);
2350 Log("Received a PACKET_SPAWN_PICKUP from the server:");
2351 Log(" EntityID = %d", EntityID);
2352 Log(" Item = %s", ItemDesc.c_str());
2353 Log(" Pos = %s", PrintableAbsIntTriplet(PosX, PosY, PosZ).c_str());
2354 Log(" Angles = [%d, %d, %d]", Rotation, Pitch, Roll);
2355 COPY_TO_CLIENT();
2356 return true;
2357}
2358
2359
2360

Callers

nothing calls this directly

Calls 2

PrintableAbsIntTripletFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected