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

Method Destroy

src/Entities/Entity.cpp:198–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196
197
198void cEntity::Destroy(bool a_ShouldBroadcast)
199{
200 if (!m_IsInitialized)
201 {
202 return;
203 }
204
205 if (a_ShouldBroadcast)
206 {
207 m_World->BroadcastDestroyEntity(*this);
208 }
209
210 m_IsInitialized = false;
211
212 Destroyed();
213}
214
215
216

Callers 2

ItemMethod · 0.45
ItemMethod · 0.45

Calls 1

Tested by

no test coverage detected