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

Method HandleSlotSelected

src/ClientHandle.cpp:1275–1279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1273
1274
1275void cClientHandle::HandleSlotSelected(short a_SlotNum)
1276{
1277 m_Player->GetInventory().SetEquippedSlotNum(a_SlotNum);
1278 m_Player->GetWorld()->BroadcastEntityEquipment(*m_Player, 0, m_Player->GetInventory().GetEquippedItem(), this);
1279}
1280
1281
1282

Callers 2

ParseSlotSelectedMethod · 0.80

Calls 3

SetEquippedSlotNumMethod · 0.80
GetWorldMethod · 0.45

Tested by

no test coverage detected