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

Method SendExperience

src/Protocol/Protocol125.cpp:815–823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

813
814
815void cProtocol125::SendExperience(void)
816{
817 cCSLock Lock(m_CSPacket);
818 WriteByte (PACKET_EXPERIENCE);
819 WriteFloat (m_Client->GetPlayer()->GetXpPercentage());
820 WriteShort (m_Client->GetPlayer()->GetXpLevel());
821 WriteShort (m_Client->GetPlayer()->GetCurrentXp());
822 Flush();
823}
824
825
826

Callers

nothing calls this directly

Calls 4

GetXpPercentageMethod · 0.80
GetXpLevelMethod · 0.80
GetCurrentXpMethod · 0.80
GetPlayerMethod · 0.45

Tested by

no test coverage detected