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

Method Destroy

src/BlockEntities/FlowerPotEntity.cpp:58–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57
58void cFlowerPotEntity::Destroy(void)
59{
60 // Drop the contents as pickups:
61 if (!m_Item.IsEmpty())
62 {
63 ASSERT(m_World != NULL);
64 cItems Pickups;
65 Pickups.Add(m_Item);
66 m_World->SpawnItemPickups(Pickups, m_PosX + 0.5, m_PosY + 0.5, m_PosZ + 0.5);
67
68 m_Item.Empty();
69 }
70}
71
72
73

Callers 1

TrySuckPickupInMethod · 0.45

Calls 4

SpawnItemPickupsMethod · 0.80
EmptyMethod · 0.80
IsEmptyMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected