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

Method HandleEntityLeaveBed

src/ClientHandle.cpp:1475–1484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1473
1474
1475void cClientHandle::HandleEntityLeaveBed(int a_EntityID)
1476{
1477 if (a_EntityID != m_Player->GetUniqueID())
1478 {
1479 // We should only receive entity actions from the entity that is performing the action
1480 return;
1481 }
1482
1483 m_Player->GetWorld()->BroadcastEntityAnimation(*m_Player, 2);
1484}
1485
1486
1487

Callers 3

ParseEntityActionMethod · 0.80
ParseEntityActionMethod · 0.80

Calls 3

GetUniqueIDMethod · 0.45
GetWorldMethod · 0.45

Tested by

no test coverage detected