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

Method SendExperience

src/Protocol/Protocol17x.cpp:853–859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

851
852
853void cProtocol172::SendExperience (void)
854{
855 cPacketizer Pkt(*this, 0x1F); //Experience Packet
856 Pkt.WriteFloat(m_Client->GetPlayer()->GetXpPercentage());
857 Pkt.WriteShort(m_Client->GetPlayer()->GetXpLevel());
858 Pkt.WriteShort(m_Client->GetPlayer()->GetCurrentXp());
859}
860
861
862

Callers

nothing calls this directly

Calls 6

GetXpPercentageMethod · 0.80
GetXpLevelMethod · 0.80
GetCurrentXpMethod · 0.80
WriteFloatMethod · 0.45
GetPlayerMethod · 0.45
WriteShortMethod · 0.45

Tested by

no test coverage detected