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

Method HandleServerEntityTeleport

Tools/ProtoProxy/Connection.cpp:1648–1663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1646
1647
1648bool cConnection::HandleServerEntityTeleport(void)
1649{
1650 HANDLE_SERVER_PACKET_READ(ReadBEInt, int, EntityID);
1651 HANDLE_SERVER_PACKET_READ(ReadBEInt, int, AbsX);
1652 HANDLE_SERVER_PACKET_READ(ReadBEInt, int, AbsY);
1653 HANDLE_SERVER_PACKET_READ(ReadBEInt, int, AbsZ);
1654 HANDLE_SERVER_PACKET_READ(ReadByte, Byte, Yaw);
1655 HANDLE_SERVER_PACKET_READ(ReadByte, Byte, Pitch);
1656 Log("Received a PACKET_ENTITY_TELEPORT from the server:");
1657 Log(" EntityID = %d", EntityID);
1658 Log(" Pos = %s", PrintableAbsIntTriplet(AbsX, AbsY, AbsZ).c_str());
1659 Log(" Yaw = %d", Yaw);
1660 Log(" Pitch = %d", Pitch);
1661 COPY_TO_CLIENT();
1662 return true;
1663}
1664
1665
1666

Callers

nothing calls this directly

Calls 2

PrintableAbsIntTripletFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected