We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffa7e61 commit b0c0f7eCopy full SHA for b0c0f7e
java-data/terasology/problems/api_related/5/correct-usages/destroy.java java-data/terasology/problems/api_related/5/correct-usages/PojoEntityManager.java
@@ -44,22 +44,14 @@
44
45
46
public class PojoEntityManager implements EngineEntityManager {
47
- /**
48
- * Destroys this entity, sending event
49
- *
50
- * @param entityId
51
- */
+
52
@Override
53
public void destroy(long entityId) {
54
- // Don't allow the destruction of unloaded entities.
55
- if (!loadedIds.contains(entityId)) {
56
- return;
57
- }
58
EntityRef ref = createEntityRef(entityId);
59
- if (eventSystem != null) {
60
- eventSystem.send(ref, BeforeDeactivateComponent.newInstance());
61
- eventSystem.send(ref, BeforeRemoveComponent.newInstance());
62
+ // ..
63
notifyComponentRemovalAndEntityDestruction(entityId, ref);
64
destroy(ref);
65
}
0 commit comments