Called when an entity is being deleted from the world.
entity
@override void deleted(int entity) => removeFromPlayer(entity);