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;
}
public boolean isRemoved() {
return removed;
}
public void activate() {
active = true;
refresh();
@ -106,4 +110,8 @@ public final class Entity {
this.uniqueId = nextUniqueId++;
}
public String toString() {
return "Entity[id=" + id + ", uniqueId=" + uniqueId + "]";
}
}