Add isRemoved() and toString() to Entity

This commit is contained in:
Matt Low 2020-01-27 13:19:36 +04:00
parent f366c4b808
commit 97e79b93ea

View File

@ -34,6 +34,10 @@ public final class Entity {
return active; return active;
} }
public boolean isRemoved() {
return removed;
}
public void activate() { public void activate() {
active = true; active = true;
refresh(); refresh();
@ -106,4 +110,8 @@ public final class Entity {
this.uniqueId = nextUniqueId++; this.uniqueId = nextUniqueId++;
} }
public String toString() {
return "Entity[id=" + id + ", uniqueId=" + uniqueId + "]";
}
} }