public interface WatchedEntity extends Entity
Unlike the entities in an EntitySet, this Entity can actually have null values for some components depending on their current state. The WatchedEntity is watching a specific ID with a subset of its components but is not using the components for any kind of "membership" inclusion (like EntitySet does).
Modifier and Type | Method and Description |
---|---|
boolean |
applyChanges()
Applies any accumulated changes to this entity since
the last time applyChanges() was called and returns true
if changes were applied.
|
boolean |
applyChanges(java.util.Set<EntityChange> updates)
Applies any accumulated changes to this entity since
the last time applyChanges() was called and returns true
if changes were applied.
|
boolean |
hasChanges()
Returns true if this entity has changes
ready to be applied.
|
void |
release()
Releases this entity from processing further entity
updates.
|
get, getComponents, getId, isComplete, set
boolean hasChanges()
boolean applyChanges()
boolean applyChanges(java.util.Set<EntityChange> updates)
void release()