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

Method GetMaxSpeed

src/Entities/Player.cpp:686–703  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

684
685
686double cPlayer::GetMaxSpeed(void) const
687{
688 if (m_IsFlying)
689 {
690 return m_FlyingMaxSpeed;
691 }
692 else
693 {
694 if (m_IsSprinting)
695 {
696 return m_SprintingMaxSpeed;
697 }
698 else
699 {
700 return m_NormalMaxSpeed;
701 }
702 }
703}
704
705
706

Callers 2

SendPlayerMaxSpeedMethod · 0.80
SendPlayerAbilitiesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected