public interface EntityData
Modifier and Type | Method and Description |
---|---|
void |
close() |
EntityId |
createEntity() |
java.util.Set<EntityId> |
findEntities(ComponentFilter filter,
java.lang.Class... types) |
EntityId |
findEntity(ComponentFilter filter,
java.lang.Class... types) |
<T extends EntityComponent> |
getComponent(EntityId entityId,
java.lang.Class<T> type) |
EntitySet |
getEntities(java.lang.Class... types) |
EntitySet |
getEntities(ComponentFilter filter,
java.lang.Class... types) |
Entity |
getEntity(EntityId entityId,
java.lang.Class... types) |
StringIndex |
getStrings() |
<T extends EntityComponent> |
removeComponent(EntityId entityId,
java.lang.Class<T> type) |
void |
removeEntity(EntityId entityId) |
<T extends EntityComponent> |
setComponent(EntityId entityId,
T component) |
void |
setComponents(EntityId entityId,
EntityComponent... components) |
WatchedEntity |
watchEntity(EntityId entityId,
java.lang.Class... types) |
EntityId createEntity()
void removeEntity(EntityId entityId)
<T extends EntityComponent> void setComponent(EntityId entityId, T component)
void setComponents(EntityId entityId, EntityComponent... components)
<T extends EntityComponent> boolean removeComponent(EntityId entityId, java.lang.Class<T> type)
<T extends EntityComponent> T getComponent(EntityId entityId, java.lang.Class<T> type)
EntityId findEntity(ComponentFilter filter, java.lang.Class... types)
java.util.Set<EntityId> findEntities(ComponentFilter filter, java.lang.Class... types)
EntitySet getEntities(java.lang.Class... types)
EntitySet getEntities(ComponentFilter filter, java.lang.Class... types)
WatchedEntity watchEntity(EntityId entityId, java.lang.Class... types)
StringIndex getStrings()
void close()