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

Method HandleEntityCrouch

src/ClientHandle.cpp:1460–1469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1458
1459
1460void cClientHandle::HandleEntityCrouch(int a_EntityID, bool a_IsCrouching)
1461{
1462 if (a_EntityID != m_Player->GetUniqueID())
1463 {
1464 // We should only receive entity actions from the entity that is performing the action
1465 return;
1466 }
1467
1468 m_Player->SetCrouch(a_IsCrouching);
1469}
1470
1471
1472

Callers 3

ParseEntityActionMethod · 0.80
ParseEntityActionMethod · 0.80

Calls 2

SetCrouchMethod · 0.80
GetUniqueIDMethod · 0.45

Tested by

no test coverage detected