despawn method

bool despawn()

Despawns this entity. Returns true if it was alive.

Implementation

bool despawn() => world.despawn(this);